Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c13602d634 | ||
|
|
f9cd9c95c3 | ||
|
|
11696d17e8 | ||
|
|
43f0f730d3 | ||
|
|
e08f55a92c | ||
|
|
8eac6ed9fa | ||
|
|
2a3d0a95cc | ||
|
|
a891fbe826 | ||
|
|
bea89f9e19 | ||
|
|
ec905840eb | ||
|
|
c6fe556e76 | ||
|
|
4dfb75204d | ||
|
|
cf737ace93 | ||
|
|
4a58620228 | ||
|
|
b0f7f880d6 | ||
|
|
02e8dc451a | ||
|
|
01486e870f | ||
|
|
0a1ce7e32a | ||
|
|
7c72aba1af | ||
|
|
9a42f3deef | ||
|
|
d5f0b75de6 | ||
|
|
b49356852d | ||
|
|
8215ef9e4b | ||
|
|
f4abf130d2 | ||
|
|
956cea4be9 | ||
|
|
686125e369 | ||
|
|
8d950c5d10 | ||
|
|
fa5aacf980 | ||
|
|
3563b86b82 | ||
|
|
1da94636b9 | ||
|
|
9602ad3a12 | ||
|
|
9a4af6922a | ||
|
|
de129c2af1 | ||
|
|
e1e010ef15 | ||
|
|
4a353051d5 | ||
|
|
db7f26e813 | ||
|
|
e21bee9649 | ||
|
|
651eeb841d | ||
|
|
e309e89379 | ||
|
|
77a0fedcfc | ||
|
|
7b37269dfb | ||
|
|
2b3c5242df | ||
|
|
7998607ac4 | ||
|
|
c6d538b2f4 | ||
|
|
029307acce | ||
|
|
ab1d3e1718 | ||
|
|
f9196adcb3 | ||
|
|
42843a70bc | ||
|
|
7c921d4897 | ||
|
|
22b2a96d83 | ||
|
|
873eac1aa3 | ||
|
|
4e9d859ab0 | ||
|
|
c6e0d3282a | ||
|
|
ec0f4c0829 | ||
|
|
9b9b21a8e4 | ||
|
|
1bca0e007b | ||
|
|
4a27b56c94 | ||
|
|
243380a022 | ||
|
|
3e4c7255a3 | ||
|
|
62025e3d6c | ||
|
|
1eb1a1b954 | ||
|
|
d5659ebc9c | ||
|
|
2417ca9401 | ||
|
|
42c2560cc6 | ||
|
|
979d3113e6 | ||
|
|
d829df08b7 | ||
|
|
d7d2b5ff41 | ||
|
|
ae2c6d8776 | ||
|
|
0f32265043 | ||
|
|
5d08e69b14 | ||
|
|
3b84035715 | ||
|
|
4516e4439a | ||
|
|
5f675dd3c6 | ||
|
|
c64d93f943 | ||
|
|
e0636b9470 | ||
|
|
accb61cbc6 | ||
|
|
f9d1da8c29 | ||
|
|
8059f7c83f | ||
|
|
f6cbec591e |
No files matched your search
@@ -0,0 +1,3 @@
|
||||
*.md
|
||||
.idea
|
||||
.git
|
||||
@@ -1 +1,2 @@
|
||||
custom: ["http://afdian.net/a/filecodebox"]
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
---
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Describe the bug**
|
||||
A clear and concise description of what the bug is.
|
||||
|
||||
**To Reproduce**
|
||||
Steps to reproduce the behavior:
|
||||
1. Go to '...'
|
||||
2. Click on '....'
|
||||
3. Scroll down to '....'
|
||||
4. See error
|
||||
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Desktop (please complete the following information):**
|
||||
- OS: [e.g. iOS]
|
||||
- Browser [e.g. chrome, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Smartphone (please complete the following information):**
|
||||
- Device: [e.g. iPhone6]
|
||||
- OS: [e.g. iOS8.1]
|
||||
- Browser [e.g. stock browser, safari]
|
||||
- Version [e.g. 22]
|
||||
|
||||
**Additional context**
|
||||
Add any other context about the problem here.
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
name: Custom issue template
|
||||
about: Describe this issue template's purpose here.
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
---
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: ''
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Is your feature request related to a problem? Please describe.**
|
||||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
|
||||
|
||||
**Describe the solution you'd like**
|
||||
A clear and concise description of what you want to happen.
|
||||
|
||||
**Describe alternatives you've considered**
|
||||
A clear and concise description of any alternative solutions or features you've considered.
|
||||
|
||||
**Additional context**
|
||||
Add any other context or screenshots about the feature request here.
|
||||
|
After Width: | Height: | Size: 571 KiB |
|
After Width: | Height: | Size: 557 KiB |
|
After Width: | Height: | Size: 579 KiB |
|
After Width: | Height: | Size: 201 KiB |
|
After Width: | Height: | Size: 254 KiB |
|
After Width: | Height: | Size: 200 KiB |
|
After Width: | Height: | Size: 514 KiB |
@@ -1,8 +1,6 @@
|
||||
FROM python:3.9.5-slim-buster
|
||||
LABEL author="Lan"
|
||||
LABEL email="vast@tom.com"
|
||||
LABEL version="6"
|
||||
|
||||
|
||||
COPY . /app
|
||||
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
# Security Policy
|
||||
|
||||
## Supported Versions
|
||||
|
||||
Use this section to tell people about which versions of your project are
|
||||
currently being supported with security updates.
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | ------------------ |
|
||||
| 5.1.x | :white_check_mark: |
|
||||
| 5.0.x | :x: |
|
||||
| 4.0.x | :white_check_mark: |
|
||||
| < 4.0 | :x: |
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
Use this section to tell people how to report a vulnerability.
|
||||
|
||||
Tell them where to go, how often they can expect to get an update on a
|
||||
reported vulnerability, what to expect if the vulnerability is accepted or
|
||||
declined, etc.
|
||||
@@ -10,7 +10,7 @@ from core.settings import settings
|
||||
|
||||
|
||||
async def admin_required(authorization: Union[str, None] = Header(default=None), request: Request = None):
|
||||
is_admin = authorization == settings.admin_token
|
||||
is_admin = authorization == str(settings.admin_token)
|
||||
if request.url.path.startswith('/share/'):
|
||||
if not settings.openUpload and not is_admin:
|
||||
raise HTTPException(status_code=403, detail='本站未开启游客上传,如需上传请先登录后台')
|
||||
|
||||
@@ -8,7 +8,7 @@ from fastapi import APIRouter, Depends
|
||||
|
||||
from apps.admin.depends import admin_required
|
||||
from apps.admin.pydantics import IDData
|
||||
from apps.base.models import FileCodes
|
||||
from apps.base.models import FileCodes, KeyValue
|
||||
from core.response import APIResponse
|
||||
from core.settings import settings
|
||||
from core.storage import file_storage
|
||||
@@ -44,11 +44,39 @@ async def file_list(page: float = 1, size: int = 10):
|
||||
|
||||
@admin_api.get('/config/get', dependencies=[Depends(admin_required)])
|
||||
async def get_config():
|
||||
return APIResponse(detail=settings.__dict__)
|
||||
return APIResponse(detail=settings.items())
|
||||
|
||||
|
||||
@admin_api.patch('/config/update', dependencies=[Depends(admin_required)])
|
||||
async def update_config(data: dict):
|
||||
admin_token = data.get('admin_token')
|
||||
if admin_token is None or admin_token == '':
|
||||
return APIResponse(code=400, detail='管理员密码不能为空')
|
||||
await KeyValue.filter(key='settings').update(value=data)
|
||||
for k, v in data.items():
|
||||
settings.__setattr__(k, v)
|
||||
return APIResponse()
|
||||
|
||||
|
||||
# 根据code获取文件
|
||||
async def get_file_by_id(id):
|
||||
# 查询文件
|
||||
file_code = await FileCodes.filter(id=id).first()
|
||||
# 检查文件是否存在
|
||||
if not file_code:
|
||||
return False, '文件不存在'
|
||||
return True, file_code
|
||||
|
||||
|
||||
@admin_api.get('/file/download', dependencies=[Depends(admin_required)])
|
||||
async def file_download(id: int):
|
||||
has, file_code = await get_file_by_id(id)
|
||||
# 检查文件是否存在
|
||||
if not has:
|
||||
# 返回API响应
|
||||
return APIResponse(code=404, detail='文件不存在')
|
||||
# 如果文件是文本,返回文本内容,否则返回文件响应
|
||||
if file_code.text:
|
||||
return APIResponse(detail=file_code.text)
|
||||
else:
|
||||
return await file_storage.get_file_response(file_code)
|
||||
@@ -24,17 +24,27 @@ class FileCodes(Model):
|
||||
expired_at: Optional[datetime] = fields.DatetimeField(null=True, description='过期时间')
|
||||
expired_count: Optional[int] = fields.IntField(description='可用次数', default=0)
|
||||
used_count: Optional[int] = fields.IntField(description='已用次数', default=0)
|
||||
|
||||
created_at: Optional[datetime] = fields.DatetimeField(auto_now_add=True, description='创建时间')
|
||||
|
||||
async def is_expired(self):
|
||||
if self.expired_at and (self.expired_count == -1 or self.expired_count > 0):
|
||||
# 按时间
|
||||
if self.expired_at is None:
|
||||
return False
|
||||
if self.expired_at and self.expired_count < 0:
|
||||
return self.expired_at < await get_now()
|
||||
# 按次数
|
||||
else:
|
||||
return self.expired_count != -1 and self.expired_count == 0
|
||||
return self.expired_count <= 0
|
||||
|
||||
async def get_file_path(self):
|
||||
return f"{self.file_path}/{self.uuid_file_name}"
|
||||
|
||||
|
||||
class KeyValue(Model):
|
||||
id: Optional[int] = fields.IntField(pk=True)
|
||||
key: Optional[str] = fields.CharField(max_length=255, description='键', index=True, unique=True)
|
||||
value: Optional[str] = fields.JSONField(description='值', null=True)
|
||||
created_at: Optional[datetime] = fields.DatetimeField(auto_now_add=True, description='创建时间')
|
||||
|
||||
|
||||
file_codes_pydantic = pydantic_model_creator(FileCodes, name='FileCodes')
|
||||
@@ -5,12 +5,12 @@
|
||||
import datetime
|
||||
import uuid
|
||||
import os
|
||||
from fastapi import UploadFile
|
||||
from fastapi import UploadFile, HTTPException
|
||||
|
||||
from apps.base.depends import IPRateLimit
|
||||
from apps.base.models import FileCodes
|
||||
from core.settings import settings
|
||||
from core.utils import get_random_num, get_random_string
|
||||
from core.utils import get_random_num, get_random_string, max_save_times_desc
|
||||
|
||||
|
||||
async def get_file_path_name(file: UploadFile):
|
||||
@@ -43,11 +43,24 @@ async def get_expire_info(expire_value: int, expire_style: str):
|
||||
:return: expired_at 过期时间, expired_count 可用次数, used_count 已用次数, code 随机码
|
||||
"""
|
||||
expired_count, used_count, now, code = -1, 0, datetime.datetime.now(), None
|
||||
if settings.max_save_seconds > 0:
|
||||
max_timedelta = datetime.timedelta(seconds=settings.max_save_seconds)
|
||||
detail = await max_save_times_desc(settings.max_save_seconds)
|
||||
detail = f'保存时间超过限制,{detail[0]}'
|
||||
else:
|
||||
max_timedelta = datetime.timedelta(days=7)
|
||||
detail = '保存时间超过限制,最长保存时间:7天'
|
||||
if expire_style == 'day':
|
||||
if datetime.timedelta(days=expire_value) > max_timedelta:
|
||||
raise HTTPException(status_code=403, detail=detail)
|
||||
expired_at = now + datetime.timedelta(days=expire_value)
|
||||
elif expire_style == 'hour':
|
||||
if datetime.timedelta(hours=expire_value) > max_timedelta:
|
||||
raise HTTPException(status_code=403, detail=detail)
|
||||
expired_at = now + datetime.timedelta(hours=expire_value)
|
||||
elif expire_style == 'minute':
|
||||
if datetime.timedelta(minutes=expire_value) > max_timedelta:
|
||||
raise HTTPException(status_code=403, detail=detail)
|
||||
expired_at = now + datetime.timedelta(minutes=expire_value)
|
||||
elif expire_style == 'count':
|
||||
expired_at = now + datetime.timedelta(days=1)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# @Author : Lan
|
||||
# @File : views.py
|
||||
# @Software: PyCharm
|
||||
# 导入所需的库和模块
|
||||
from fastapi import APIRouter, Form, UploadFile, File, Depends, HTTPException
|
||||
from apps.admin.depends import admin_required
|
||||
from apps.base.models import FileCodes
|
||||
@@ -12,15 +13,19 @@ from core.settings import settings
|
||||
from core.storage import file_storage
|
||||
from core.utils import get_select_token
|
||||
|
||||
# 创建一个API路由
|
||||
share_api = APIRouter(
|
||||
prefix='/share',
|
||||
tags=['分享'],
|
||||
prefix='/share', # 路由前缀
|
||||
tags=['分享'], # 标签
|
||||
)
|
||||
|
||||
|
||||
# 分享文本的API
|
||||
@share_api.post('/text/', dependencies=[Depends(admin_required)])
|
||||
async def share_text(text: str = Form(...), expire_value: int = Form(default=1, gt=0), expire_style: str = Form(default='day'), ip: str = Depends(upload_ip_limit)):
|
||||
# 获取过期信息
|
||||
expired_at, expired_count, used_count, code = await get_expire_info(expire_value, expire_style)
|
||||
# 创建一个新的FileCodes实例
|
||||
await FileCodes.create(
|
||||
code=code,
|
||||
text=text,
|
||||
@@ -30,19 +35,29 @@ async def share_text(text: str = Form(...), expire_value: int = Form(default=1,
|
||||
size=len(text),
|
||||
prefix='文本分享'
|
||||
)
|
||||
# 添加IP到限制列表
|
||||
upload_ip_limit.add_ip(ip)
|
||||
# 返回API响应
|
||||
return APIResponse(detail={
|
||||
'code': code,
|
||||
})
|
||||
|
||||
|
||||
# 分享文件的API
|
||||
@share_api.post('/file/', dependencies=[Depends(admin_required)])
|
||||
async def share_file(expire_value: int = Form(default=1, gt=0), expire_style: str = Form(default='day'), file: UploadFile = File(...), ip: str = Depends(upload_ip_limit)):
|
||||
# 检查文件大小是否超过限制
|
||||
if file.size > settings.uploadSize:
|
||||
raise HTTPException(status_code=403, detail=f'文件大小超过限制,最大为{settings.uploadSize}字节')
|
||||
# 获取过期信息
|
||||
if expire_style not in settings.expireStyle:
|
||||
raise HTTPException(status_code=400, detail='过期时间类型错误')
|
||||
expired_at, expired_count, used_count, code = await get_expire_info(expire_value, expire_style)
|
||||
# 获取文件路径和名称
|
||||
path, suffix, prefix, uuid_file_name, save_path = await get_file_path_name(file)
|
||||
# 保存文件
|
||||
await file_storage.save_file(file, save_path)
|
||||
# 创建一个新的FileCodes实例
|
||||
await FileCodes.create(
|
||||
code=code,
|
||||
prefix=prefix,
|
||||
@@ -54,43 +69,67 @@ async def share_file(expire_value: int = Form(default=1, gt=0), expire_style: st
|
||||
expired_count=expired_count,
|
||||
used_count=used_count,
|
||||
)
|
||||
# 添加IP到限制列表
|
||||
upload_ip_limit.add_ip(ip)
|
||||
# 返回API响应
|
||||
return APIResponse(detail={
|
||||
'code': code,
|
||||
'name': file.filename,
|
||||
})
|
||||
|
||||
|
||||
async def get_code_file_by_code(code):
|
||||
# 根据code获取文件
|
||||
async def get_code_file_by_code(code, check=True):
|
||||
# 查询文件
|
||||
file_code = await FileCodes.filter(code=code).first()
|
||||
# 检查文件是否存在
|
||||
if not file_code:
|
||||
return False, '文件不存在'
|
||||
if await file_code.is_expired():
|
||||
# 检查文件是否过期
|
||||
if await file_code.is_expired() and check:
|
||||
return False, '文件已过期',
|
||||
return True, file_code
|
||||
|
||||
|
||||
# 获取文件的API
|
||||
@share_api.get('/select/')
|
||||
async def get_code_file(code: str, ip: str = Depends(error_ip_limit)):
|
||||
# 获取文件
|
||||
has, file_code = await get_code_file_by_code(code)
|
||||
# 检查文件是否存在
|
||||
if not has:
|
||||
# 添加IP到限制列表
|
||||
error_ip_limit.add_ip(ip)
|
||||
# 返回API响应
|
||||
return APIResponse(code=404, detail=file_code)
|
||||
# 更新文件的使用次数和过期次数
|
||||
file_code.used_count += 1
|
||||
file_code.expired_count -= 1
|
||||
if file_code.expired_count > 0:
|
||||
file_code.expired_count -= 1
|
||||
# 保存文件
|
||||
await file_code.save()
|
||||
# 返回文件响应
|
||||
return await file_storage.get_file_response(file_code)
|
||||
|
||||
|
||||
# 选择文件的API
|
||||
@share_api.post('/select/')
|
||||
async def select_file(data: SelectFileModel, ip: str = Depends(error_ip_limit)):
|
||||
# 获取文件
|
||||
has, file_code = await get_code_file_by_code(data.code)
|
||||
# 检查文件是否存在
|
||||
if not has:
|
||||
# 添加IP到限制列表
|
||||
error_ip_limit.add_ip(ip)
|
||||
# 返回API响应
|
||||
return APIResponse(code=404, detail=file_code)
|
||||
# 更新文件的使用次数和过期次数
|
||||
file_code.used_count += 1
|
||||
file_code.expired_count -= 1
|
||||
if file_code.expired_count > 0:
|
||||
file_code.expired_count -= 1
|
||||
# 保存文件
|
||||
await file_code.save()
|
||||
# 返回API响应
|
||||
return APIResponse(detail={
|
||||
'code': file_code.code,
|
||||
'name': file_code.prefix + file_code.suffix,
|
||||
@@ -99,14 +138,21 @@ async def select_file(data: SelectFileModel, ip: str = Depends(error_ip_limit)):
|
||||
})
|
||||
|
||||
|
||||
# 下载文件的API
|
||||
@share_api.get('/download')
|
||||
async def download_file(key: str, code: str, ip: str = Depends(error_ip_limit)):
|
||||
# 检查token是否有效
|
||||
is_valid = await get_select_token(code) == key
|
||||
if not is_valid:
|
||||
# 添加IP到限制列表
|
||||
error_ip_limit.add_ip(ip)
|
||||
has, file_code = await get_code_file_by_code(code)
|
||||
if not file_code:
|
||||
# 获取文件
|
||||
has, file_code = await get_code_file_by_code(code, False)
|
||||
# 检查文件是否存在
|
||||
if not has:
|
||||
# 返回API响应
|
||||
return APIResponse(code=404, detail='文件不存在')
|
||||
# 如果文件是文本,返回文本内容,否则返回文件响应
|
||||
if file_code.text:
|
||||
return APIResponse(detail=file_code.text)
|
||||
else:
|
||||
|
||||
@@ -2,30 +2,43 @@
|
||||
# @Author : Lan
|
||||
# @File : settings.py
|
||||
# @Software: PyCharm
|
||||
import json
|
||||
from pathlib import Path
|
||||
|
||||
data_root = Path('./data')
|
||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
||||
data_root = BASE_DIR / 'data'
|
||||
|
||||
if not data_root.exists():
|
||||
data_root.mkdir(parents=True, exist_ok=True)
|
||||
env_path = data_root / '.env2'
|
||||
default_value = {
|
||||
|
||||
DEFAULT_CONFIG = {
|
||||
'file_storage': 'local',
|
||||
'name': '文件快递柜-FileCodeBox',
|
||||
'description': '开箱即用的文件快传系统',
|
||||
'keywords': 'FileCodeBox,文件快递柜,口令传送箱,匿名口令分享文本,文件',
|
||||
'notify_title': '系统通知',
|
||||
'notify_content': '欢迎使用FileCodeBox,本程序开源于 <a href="https://github.com/vastsa/FileCodeBox" target="_blank">Github</a> ,欢迎Star和Fork。',
|
||||
'page_explain': '根据《中华人民共和国网络安全法》、《中华人民共和国刑法》、《中华人民共和国治安管理处罚法》等相关规定。 传播或存储违法、违规内容,会受到相关处罚,严重者将承担刑事责任。请勿上传非法文件,本站坚决配合相关部门,确保网络内容的安全,和谐,打造绿色网络环境。',
|
||||
'keywords': 'FileCodeBox, 文件快递柜, 口令传送箱, 匿名口令分享文本, 文件',
|
||||
's3_access_key_id': '',
|
||||
's3_secret_access_key': '',
|
||||
's3_bucket_name': '',
|
||||
's3_endpoint_url': '',
|
||||
's3_region_name': 'auto',
|
||||
's3_signature_version': 's3v2',
|
||||
's3_hostname': '',
|
||||
's3_proxy': 0,
|
||||
'max_save_seconds': 0,
|
||||
'aws_session_token': '',
|
||||
'onedrive_domain': '',
|
||||
'onedrive_client_id': '',
|
||||
'onedrive_username': '',
|
||||
'onedrive_password': '',
|
||||
'onedrive_root_path': 'filebox_storage',
|
||||
'onedrive_proxy': 0,
|
||||
'admin_token': 'FileCodeBox2023',
|
||||
'openUpload': 1,
|
||||
'uploadSize': 1024 * 1024 * 10,
|
||||
'expireStyle': ['day', 'hour', 'minute', 'forever', 'count'],
|
||||
'uploadMinute': 1,
|
||||
'opacity': 0.9,
|
||||
'background': '',
|
||||
@@ -37,41 +50,25 @@ default_value = {
|
||||
|
||||
|
||||
class Settings:
|
||||
__instance = None
|
||||
def __init__(self, defaults=None):
|
||||
self.default_config = defaults or {}
|
||||
self.user_config = {}
|
||||
|
||||
def __init__(self):
|
||||
# 读取.env
|
||||
if not (env_path).exists():
|
||||
with open(env_path, 'w', encoding='utf-8') as f:
|
||||
for key, value in default_value.items():
|
||||
f.write(f'{key}={value}\n')
|
||||
# 更新default_value
|
||||
with open(env_path, 'r', encoding='utf-8') as f:
|
||||
for line in f.readlines():
|
||||
key, value = line.strip().split('=', maxsplit=1)
|
||||
# 将字符串转换为原本的类型
|
||||
if not key.startswith('opendal_') and isinstance(default_value[key], int):
|
||||
value = int(value)
|
||||
default_value[key] = value
|
||||
# 更新self
|
||||
for key, value in default_value.items():
|
||||
self.__setattr__(key, value)
|
||||
|
||||
def __new__(cls, *args, **kwargs):
|
||||
if not cls.__instance:
|
||||
cls.__instance = super(Settings, cls).__new__(cls, *args, **kwargs)
|
||||
return cls.__instance
|
||||
def __getattr__(self, attr):
|
||||
if attr in self.user_config:
|
||||
return self.user_config[attr]
|
||||
if attr in self.default_config:
|
||||
return self.default_config[attr]
|
||||
raise AttributeError(f"'{self.__class__.__name__}' object has no attribute '{attr}'")
|
||||
|
||||
def __setattr__(self, key, value):
|
||||
if not key.startswith('opendal_') and type(value) == str and value.isnumeric():
|
||||
value = int(value)
|
||||
self.__dict__[key] = value
|
||||
with open(env_path, 'w', encoding='utf-8') as f:
|
||||
for key, value in self.__dict__.items():
|
||||
f.write(f'{key}={value}\n')
|
||||
if key in ['default_config', 'user_config']:
|
||||
super().__setattr__(key, value)
|
||||
else:
|
||||
self.user_config[key] = value
|
||||
|
||||
def items(self):
|
||||
return self.__dict__.items()
|
||||
return {**self.default_config, **self.user_config}.items()
|
||||
|
||||
|
||||
settings = Settings()
|
||||
settings = Settings(DEFAULT_CONFIG)
|
||||
@@ -2,12 +2,15 @@
|
||||
# @Author : Lan
|
||||
# @File : storage.py
|
||||
# @Software: PyCharm
|
||||
import aiohttp
|
||||
import asyncio
|
||||
from pathlib import Path
|
||||
import datetime
|
||||
import io
|
||||
import re
|
||||
import sys
|
||||
import aioboto3
|
||||
from botocore.config import Config
|
||||
from fastapi import HTTPException, Response, UploadFile
|
||||
from core.response import APIResponse
|
||||
from core.settings import data_root, settings
|
||||
@@ -17,8 +20,6 @@ from fastapi.responses import FileResponse
|
||||
|
||||
|
||||
class FileStorageInterface:
|
||||
def __init__(self):
|
||||
raise NotImplementedError
|
||||
|
||||
async def save_file(self, file: UploadFile, save_path: str):
|
||||
"""
|
||||
@@ -89,24 +90,53 @@ class S3FileStorage(FileStorageInterface):
|
||||
self.access_key_id = settings.s3_access_key_id
|
||||
self.secret_access_key = settings.s3_secret_access_key
|
||||
self.bucket_name = settings.s3_bucket_name
|
||||
self.endpoint_url = settings.s3_endpoint_url
|
||||
self.s3_hostname = settings.s3_hostname
|
||||
self.region_name = settings.s3_region_name
|
||||
self.signature_version = settings.s3_signature_version
|
||||
self.endpoint_url = settings.s3_endpoint_url or f'https://{self.s3_hostname}'
|
||||
self.aws_session_token = settings.aws_session_token
|
||||
self.proxy = settings.s3_proxy
|
||||
self.session = aioboto3.Session(aws_access_key_id=self.access_key_id, aws_secret_access_key=self.secret_access_key)
|
||||
if not settings.s3_endpoint_url:
|
||||
self.endpoint_url = f'https://{self.s3_hostname}'
|
||||
else:
|
||||
# 如果提供了 s3_endpoint_url,则优先使用它
|
||||
self.endpoint_url = settings.s3_endpoint_url
|
||||
|
||||
async def save_file(self, file: UploadFile, save_path: str):
|
||||
async with self.session.client("s3", endpoint_url=self.endpoint_url, aws_session_token=self.aws_session_token) as s3:
|
||||
async with self.session.client("s3", endpoint_url=self.endpoint_url, aws_session_token=self.aws_session_token, region_name=self.region_name,
|
||||
config=Config(signature_version=self.signature_version)) as s3:
|
||||
await s3.put_object(Bucket=self.bucket_name, Key=save_path, Body=await file.read(), ContentType=file.content_type)
|
||||
|
||||
async def delete_file(self, file_code: FileCodes):
|
||||
async with self.session.client("s3", endpoint_url=self.endpoint_url) as s3:
|
||||
async with self.session.client("s3", endpoint_url=self.endpoint_url, region_name=self.region_name, config=Config(signature_version=self.signature_version)) as s3:
|
||||
await s3.delete_object(Bucket=self.bucket_name, Key=await file_code.get_file_path())
|
||||
|
||||
async def get_file_response(self, file_code: FileCodes):
|
||||
try:
|
||||
filename = file_code.prefix + file_code.suffix
|
||||
async with self.session.client("s3", endpoint_url=self.endpoint_url, region_name=self.region_name, config=Config(signature_version=self.signature_version)) as s3:
|
||||
link = await s3.generate_presigned_url('get_object', Params={'Bucket': self.bucket_name, 'Key': await file_code.get_file_path()}, ExpiresIn=3600)
|
||||
tmp = io.BytesIO()
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get(link) as resp:
|
||||
tmp.write(await resp.read())
|
||||
tmp.seek(0)
|
||||
content = tmp.read()
|
||||
tmp.close()
|
||||
return Response(content, media_type="application/octet-stream", headers={"Content-Disposition": f'attachment; filename="{filename.encode("utf-8").decode("latin-1")}"'})
|
||||
except Exception:
|
||||
raise HTTPException(status_code=503, detail='服务代理下载异常,请稍后再试')
|
||||
|
||||
async def get_file_url(self, file_code: FileCodes):
|
||||
if file_code.prefix == '文本分享':
|
||||
return file_code.text
|
||||
async with self.session.client("s3", endpoint_url=self.endpoint_url) as s3:
|
||||
result = await s3.generate_presigned_url('get_object', Params={'Bucket': self.bucket_name, 'Key': await file_code.get_file_path()}, ExpiresIn=3600)
|
||||
return result
|
||||
if self.proxy:
|
||||
return await get_file_url(file_code.code)
|
||||
else:
|
||||
async with self.session.client("s3", endpoint_url=self.endpoint_url, region_name=self.region_name, config=Config(signature_version=self.signature_version)) as s3:
|
||||
result = await s3.generate_presigned_url('get_object', Params={'Bucket': self.bucket_name, 'Key': await file_code.get_file_path()}, ExpiresIn=3600)
|
||||
return result
|
||||
|
||||
|
||||
class OneDriveFileStorage(FileStorageInterface):
|
||||
@@ -122,6 +152,7 @@ class OneDriveFileStorage(FileStorageInterface):
|
||||
self.client_id = settings.onedrive_client_id
|
||||
self.username = settings.onedrive_username
|
||||
self.password = settings.onedrive_password
|
||||
self.proxy = settings.onedrive_proxy
|
||||
self._ClientRequestException = ClientRequestException
|
||||
|
||||
try:
|
||||
@@ -193,11 +224,26 @@ class OneDriveFileStorage(FileStorageInterface):
|
||||
premission = remote_file.create_link("view", "anonymous", expiration_datetime=expiration_datetime).execute_query()
|
||||
return self._convert_link_to_download_link(premission.link.webUrl)
|
||||
|
||||
async def get_file_response(self, file_code: FileCodes):
|
||||
try:
|
||||
filename = file_code.prefix + file_code.suffix
|
||||
link = await asyncio.to_thread(self._get_file_url, await file_code.get_file_path(), filename)
|
||||
tmp = io.BytesIO()
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get(link) as resp:
|
||||
tmp.write(await resp.read())
|
||||
tmp.seek(0)
|
||||
content = tmp.read()
|
||||
tmp.close()
|
||||
return Response(content, media_type="application/octet-stream", headers={"Content-Disposition": f'attachment; filename="{filename.encode("utf-8").decode("latin-1")}"'})
|
||||
except Exception:
|
||||
raise HTTPException(status_code=503, detail='服务代理下载异常,请稍后再试')
|
||||
|
||||
async def get_file_url(self, file_code: FileCodes):
|
||||
if file_code.prefix == '文本分享':
|
||||
return file_code.text
|
||||
result = await asyncio.to_thread(self._get_file_url, await file_code.get_file_path(), f'{file_code.prefix}{file_code.suffix}')
|
||||
return result
|
||||
if self.proxy:
|
||||
return await get_file_url(file_code.code)
|
||||
else:
|
||||
return await asyncio.to_thread(self._get_file_url, await file_code.get_file_path(), f'{file_code.prefix}{file_code.suffix}')
|
||||
|
||||
|
||||
class OpenDALFileStorage(FileStorageInterface):
|
||||
@@ -242,4 +288,5 @@ storages = {
|
||||
'onedrive': OneDriveFileStorage,
|
||||
'opendal': OpenDALFileStorage,
|
||||
}
|
||||
|
||||
file_storage: FileStorageInterface = storages[settings.file_storage]()
|
||||
@@ -57,3 +57,39 @@ async def get_file_url(code: str):
|
||||
:return:
|
||||
"""
|
||||
return f'/share/download?key={await get_select_token(code)}&code={code}'
|
||||
|
||||
|
||||
async def max_save_times_desc(max_save_seconds: int):
|
||||
"""
|
||||
获取最大保存时间的描述
|
||||
:param max_save_seconds:
|
||||
:return:
|
||||
"""
|
||||
|
||||
def gen_desc_zh(value: int, desc: str):
|
||||
if value > 0:
|
||||
return f'{value}{desc}'
|
||||
else:
|
||||
return ''
|
||||
|
||||
def gen_desc_en(value: int, desc: str):
|
||||
if value > 0:
|
||||
ret = f'{value} {desc}'
|
||||
if value > 1:
|
||||
ret += 's'
|
||||
ret += ' '
|
||||
return ret
|
||||
else:
|
||||
return ''
|
||||
|
||||
max_timedelta = datetime.timedelta(seconds=max_save_seconds)
|
||||
desc_zh, desc_en = '最长保存时间:', 'Max save time: '
|
||||
desc_zh += gen_desc_zh(max_timedelta.days, '天')
|
||||
desc_en += gen_desc_en(max_timedelta.days, 'day')
|
||||
desc_zh += gen_desc_zh(max_timedelta.seconds // 3600, '小时')
|
||||
desc_en += gen_desc_en(max_timedelta.seconds // 3600, 'hour')
|
||||
desc_zh += gen_desc_zh(max_timedelta.seconds % 3600 // 60, '分钟')
|
||||
desc_en += gen_desc_en(max_timedelta.seconds % 3600 // 60, 'minute')
|
||||
desc_zh += gen_desc_zh(max_timedelta.seconds % 60, '秒')
|
||||
desc_en += gen_desc_en(max_timedelta.seconds % 60, 'second')
|
||||
return desc_zh, desc_en
|
||||
@@ -1 +0,0 @@
|
||||
import{d as a,Q as n,F as c,D as e,J as r,H as o,u as s,o as u}from"./index-c6e70cde.js";const i={style:{"text-align":"center"}},l={style:{color:"#333"},href:"https://github.com/vastsa/FileCodeBox"},f=a({__name:"AboutView",setup(_){const{t}=n();return(m,d)=>(u(),c("main",i,[e("span",null,[r(o(s(t)("admin.about.source1"))+" ",1),e("em",null,[e("a",l,o(s(t)("admin.about.source2")),1)])])]))}});export{f as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{d as s,a8 as n,V as c,S as e,Z as r,X as a,f as o,o as i}from"./index-098ca3b6.js";const l={style:{"text-align":"center"}},u={style:{color:"#333"},href:"https://github.com/vastsa/FileCodeBox"},f=s({__name:"AboutView",setup(_){const{t}=n();return(m,d)=>(i(),c("main",l,[e("span",null,[r(a(o(t)("admin.about.source1"))+" ",1),e("em",null,[e("a",u,a(o(t)("admin.about.source2")),1)])])]))}});export{f as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{T as qe,h as Ge,t as de,i as Se,E as Ue,b as Ze}from"./el-input-1fa85f7c.js";import{E as Qe,a as Xe}from"./el-form-item-e5c627c6.js";import"./el-tooltip-4ed993c7.js";import{E as Te}from"./el-popper-61ab67a6.js";import{d as _,u as x,o as I,a as X,w as E,r as $,ay as Pe,aY as Ye,f as h,T as Be,_ as R,av as Je,c as p,V as A,e as F,g as Me,i as Ne,ah as U,E as O,I as se,D as fe,aF as Ke,b as Ce,aH as le,k as me,s as S,aZ as et,a_ as tt,t as ke,O as ue,p as be,P as Ie,Q as Oe,z as M,G as Y,L as Ae,A as nt,C as ot,a9 as pe,aM as we,aN as xe,j as _e,m as at,aC as st,a$ as lt,b0 as rt,q as ut,n as it,aw as ct,R as ze,S as ye,Z as oe,X as ae,aR as dt,aT as mt,aU as pt,a8 as vt,a6 as ft,ad as ht,aB as $e,B as V,aa as gt}from"./index-098ca3b6.js";import{t as ie}from"./aria-bc8e8b0f.js";import{f as bt}from"./vnode-1dbdb4af.js";import"./_baseClone-88b87991.js";const _t=_({name:"ElCollapseTransition"}),yt=_({..._t,setup(e){const o=x("collapse-transition"),n=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},s={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){t.dataset.oldOverflow=t.style.overflow,t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){n(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){n(t)},leaveCancelled(t){n(t)}};return(t,d)=>(I(),X(Be,Pe({name:h(o).b()},Ye(s)),{default:E(()=>[$(t.$slots,"default")]),_:3},16,["name"]))}});var ce=R(yt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);ce.install=e=>{e.component(ce.name,ce)};const Mt=ce,Ct=_({name:"ElContainer"}),kt=_({...Ct,props:{direction:{type:String}},setup(e){const o=e,n=Je(),s=x("container"),t=p(()=>o.direction==="vertical"?!0:o.direction==="horizontal"?!1:n&&n.default?n.default().some(i=>{const f=i.type.name;return f==="ElHeader"||f==="ElFooter"}):!1);return(d,i)=>(I(),A("section",{class:F([h(s).b(),h(s).is("vertical",h(t))])},[$(d.$slots,"default")],2))}});var It=R(kt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const wt=_({name:"ElAside"}),Et=_({...wt,props:{width:{type:String,default:null}},setup(e){const o=e,n=x("aside"),s=p(()=>o.width?n.cssVarBlock({width:o.width}):{});return(t,d)=>(I(),A("aside",{class:F(h(n).b()),style:Me(h(s))},[$(t.$slots,"default")],6))}});var He=R(Et,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const St=_({name:"ElFooter"}),xt=_({...St,props:{height:{type:String,default:null}},setup(e){const o=e,n=x("footer"),s=p(()=>o.height?n.cssVarBlock({height:o.height}):{});return(t,d)=>(I(),A("footer",{class:F(h(n).b()),style:Me(h(s))},[$(t.$slots,"default")],6))}});var De=R(xt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const $t=_({name:"ElHeader"}),Tt=_({...$t,props:{height:{type:String,default:null}},setup(e){const o=e,n=x("header"),s=p(()=>o.height?n.cssVarBlock({height:o.height}):{});return(t,d)=>(I(),A("header",{class:F(h(n).b()),style:Me(h(s))},[$(t.$slots,"default")],6))}});var Le=R(Tt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Pt=_({name:"ElMain"}),Bt=_({...Pt,setup(e){const o=x("main");return(n,s)=>(I(),A("main",{class:F(h(o).b())},[$(n.$slots,"default")],2))}});var Ve=R(Bt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Nt=Ne(It,{Aside:He,Footer:De,Header:Le,Main:Ve});U(He);U(De);const Ot=U(Le),At=U(Ve);let zt=class{constructor(o,n){this.parent=o,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(o){o===this.subMenuItems.length?o=0:o<0&&(o=this.subMenuItems.length-1),this.subMenuItems[o].focus(),this.subIndex=o}addListeners(){const o=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",s=>{let t=!1;switch(s.code){case O.down:{this.gotoSubIndex(this.subIndex+1),t=!0;break}case O.up:{this.gotoSubIndex(this.subIndex-1),t=!0;break}case O.tab:{ie(o,"mouseleave");break}case O.enter:case O.space:{t=!Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{u as x,_ as W,w as Te,F as U,E as O,e as se,r as fe,W as qe,ab as Ge,b as Me,X as le,a3 as Ue,G as de,ac as Ze,ad as Je,k as Pe,a2 as Ee,d as be,m as Qe,ae as Xe,af as Ke,H as xe,a6 as Ye,a7 as et,s as tt,S as $e,f as nt,j as ot}from"./request-7df3eafb.js";import{E as at,a as st}from"./el-form-item-05e3aa6e.js";import"./el-tooltip-4ed993c7.js";import{E as Be}from"./el-popper-79e2cc61.js";import{d as _,o as I,a as Q,w as S,r as $,a0 as Ne,a9 as lt,u as h,T as Oe,Z as rt,c as p,F as A,b as F,e as Ce,i as me,h as E,j as ke,z as ue,p as _e,A as Ie,B as Ae,l as M,s as X,m as ut,v as it,R as pe,a5 as we,a2 as ct,g as dt,n as mt,_ as pt,C as ze,D as ye,J as oe,H as ae,a7 as vt,Q as ft,P as ht,q as V,S as gt}from"./index-c6e70cde.js";import{t as ie}from"./aria-bc8e8b0f.js";import{f as bt}from"./vnode-1ab6d357.js";import"./_baseClone-245914c0.js";const _t=_({name:"ElCollapseTransition"}),yt=_({..._t,setup(e){const o=x("collapse-transition"),n=t=>{t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom},s={beforeEnter(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0},enter(t){t.dataset.oldOverflow=t.style.overflow,t.scrollHeight!==0?t.style.maxHeight=`${t.scrollHeight}px`:t.style.maxHeight=0,t.style.paddingTop=t.dataset.oldPaddingTop,t.style.paddingBottom=t.dataset.oldPaddingBottom,t.style.overflow="hidden"},afterEnter(t){t.style.maxHeight="",t.style.overflow=t.dataset.oldOverflow},enterCancelled(t){n(t)},beforeLeave(t){t.dataset||(t.dataset={}),t.dataset.oldPaddingTop=t.style.paddingTop,t.dataset.oldPaddingBottom=t.style.paddingBottom,t.dataset.oldOverflow=t.style.overflow,t.style.maxHeight=`${t.scrollHeight}px`,t.style.overflow="hidden"},leave(t){t.scrollHeight!==0&&(t.style.maxHeight=0,t.style.paddingTop=0,t.style.paddingBottom=0)},afterLeave(t){n(t)},leaveCancelled(t){n(t)}};return(t,d)=>(I(),Q(Oe,Ne({name:h(o).b()},lt(s)),{default:S(()=>[$(t.$slots,"default")]),_:3},16,["name"]))}});var ce=W(yt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);ce.install=e=>{e.component(ce.name,ce)};const Mt=ce,Ct=_({name:"ElContainer"}),kt=_({...Ct,props:{direction:{type:String}},setup(e){const o=e,n=rt(),s=x("container"),t=p(()=>o.direction==="vertical"?!0:o.direction==="horizontal"?!1:n&&n.default?n.default().some(i=>{const f=i.type.name;return f==="ElHeader"||f==="ElFooter"}):!1);return(d,i)=>(I(),A("section",{class:F([h(s).b(),h(s).is("vertical",h(t))])},[$(d.$slots,"default")],2))}});var It=W(kt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const wt=_({name:"ElAside"}),St=_({...wt,props:{width:{type:String,default:null}},setup(e){const o=e,n=x("aside"),s=p(()=>o.width?n.cssVarBlock({width:o.width}):{});return(t,d)=>(I(),A("aside",{class:F(h(n).b()),style:Ce(h(s))},[$(t.$slots,"default")],6))}});var He=W(St,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const Et=_({name:"ElFooter"}),xt=_({...Et,props:{height:{type:String,default:null}},setup(e){const o=e,n=x("footer"),s=p(()=>o.height?n.cssVarBlock({height:o.height}):{});return(t,d)=>(I(),A("footer",{class:F(h(n).b()),style:Ce(h(s))},[$(t.$slots,"default")],6))}});var De=W(xt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const $t=_({name:"ElHeader"}),Tt=_({...$t,props:{height:{type:String,default:null}},setup(e){const o=e,n=x("header"),s=p(()=>o.height?n.cssVarBlock({height:o.height}):{});return(t,d)=>(I(),A("header",{class:F(h(n).b()),style:Ce(h(s))},[$(t.$slots,"default")],6))}});var Le=W(Tt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const Pt=_({name:"ElMain"}),Bt=_({...Pt,setup(e){const o=x("main");return(n,s)=>(I(),A("main",{class:F(h(o).b())},[$(n.$slots,"default")],2))}});var Ve=W(Bt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const Nt=Te(It,{Aside:He,Footer:De,Header:Le,Main:Ve});U(He);U(De);const Ot=U(Le),At=U(Ve);let zt=class{constructor(o,n){this.parent=o,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(o){o===this.subMenuItems.length?o=0:o<0&&(o=this.subMenuItems.length-1),this.subMenuItems[o].focus(),this.subIndex=o}addListeners(){const o=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",s=>{let t=!1;switch(s.code){case O.down:{this.gotoSubIndex(this.subIndex+1),t=!0;break}case O.up:{this.gotoSubIndex(this.subIndex-1),t=!0;break}case O.tab:{ie(o,"mouseleave");break}case O.enter:case O.space:{t=!0,s.currenLine truncated
|
||||
@@ -1,21 +1,21 @@
|
||||
import{V as pa,G as $E,u as rn,c as I0,W as Ju,g as WE,e as KE,r as QE,b as nn,d as xr,_ as In,w as ba,X as XE,I as D0,Y as ZE,k as Ta,Z as JE,U as x0,x as jE,$ as eS,n as ju,a0 as tS,a1 as rS,a2 as ed,a3 as ga,h as w0,M as M0,a4 as nS,K as aS,a5 as iS,L as oS,S as sS,f as lS,a6 as cS,a7 as uS,a8 as dS,q as _S,a9 as mS,aa as pS,t as gS}from"./request-7df3eafb.js";import{N as L0,A as Cc,a2 as ES,B as SS,x as fS,a3 as hS,z as bc,a4 as bS,V as Ni,d as yt,o as ye,F as at,b as We,u as j,r as ft,G as Gt,D as Xe,e as _r,J as tr,H as _t,q as nt,l as jr,i as td,c as rt,w as Pe,a as St,f as k0,h as At,n as TS,a5 as vS,Z as CS,p as RS,m as P0,a0 as B0,$ as NS,v as F0,T as U0,a6 as G0,C as la,E as AS,s as rd,a7 as q0,j as nd,a8 as Y0,Q as yS,P as z0,R as ad,S as id,O as OS}from"./index-c6e70cde.js";import{g as IS,E as DS}from"./el-tag-3de5cb5d.js";import{g as va,a as xS,c as wS}from"./_commonjsHelpers-de833af9.js";import{P as Ai}from"./vnode-1ab6d357.js";const MS=(...n)=>e=>{n.forEach(r=>{L0(r)?r(e):r.value=e})},LS=(n,e,r)=>{let o={offsetX:0,offsetY:0};const u=l=>{const d=l.clientX,p=l.clientY,{offsetX:S,offsetY:T}=o,v=n.value.getBoundingClientRect(),R=v.left,O=v.top,w=v.width,L=v.height,I=document.documentElement.clientWidth,G=document.documentElement.clientHeight,k=-R+S,F=-O+T,z=I-R-w+S,U=G-O-L+T,Z=ie=>{const ee=Math.min(Math.max(S+ie.clientX-d,k),z),X=Math.min(Math.max(T+ie.clientY-p,F),U);o={offsetX:ee,offsetY:X},n.value.style.transform=`translate(${pa(ee)}, ${pa(X)})`},W=()=>{document.removeEventListener("mousemove",Z),document.removeEventListener("mouseup",W)};document.addEventListener("mousemove",Z),document.addEventListener("mouseup",W)},c=()=>{e.value&&n.value&&e.value.addEventListener("mousedown",u)},_=()=>{e.value&&n.value&&e.value.removeEventListener("mousedown",u)};Cc(()=>{ES(()=>{r.value?c():_()})}),SS(()=>{_()})},kS=(n,e={})=>{fS(n)||$E("[useLockscreen]","You need to pass a ref param to this function");const r=e.ns||rn("popup"),o=hS(()=>r.bm("parent","hidden"));if(!I0||Ju(document.body,o.value))return;let u=0,c=!1,_="0";const l=()=>{setTimeout(()=>{QE(document==null?void 0:document.body,o.value),c&&document&&(document.body.style.width=_)},200)};bc(n,d=>{if(!d){l();return}c=!Ju(document.body,o.value),c&&(_=document.body.style.width),u=IS(r.namespace.value);const p=document.documentElement.clientHeight<document.body.scrollHeight,S=WE(document.body,"overflowY");u>0&&(p||S==="scroll")&&c&&(document.body.style.width=`calc(100% - ${u}px)`),KE(document.body,o.value)}),bS(()=>l())},H0=n=>{if(!n)return{onClick:Ni,onMousedown:Ni,onMouseup:Ni};let e=!1,r=!1;return{onClick:_=>{e&&r&&n(_),e=r=!1},onMousedown:_=>{e=_.target===_.currentTarget},onMouseup:_=>{r=_.target===_.currentTarget}}},PS=nn({header:{type:String,default:""},bodyStyle:{type:xr([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),BS=yt({name:"ElCard"}),FS=yt({...BS,props:PS,setup(n){const e=rn("card");return(r,o)=>(ye(),at("div",{class:We([j(e).b(),j(e).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?(ye(),at("div",{key:0,class:We(j(e).e("header"))},[ft(r.$slots,"header",{},()=>[tr(_t(r.header),1)])],2)):Gt("v-if",!0),Xe("div",{class:We(j(e).e("body")),style:_r(r.bodyStyle)},[ft(r.$slots,"default")],6)],2))}});var US=In(FS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const GS=ba(US),qS=nn({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:xr([String,Array,Object])},zIndex:{type:xr([String,Number])}}),YS={click:n=>n instanceof MouseEvent},zS="overlay";var HS=yt({name:"ElOverlay",props:qS,emits:YS,setup(n,{slots:e,emit:r}){const o=rn(zS),u=d=>{r("click",d)},{onClick:c,onMousedown:_,onMouseup:l}=H0(n.customMaskEvent?void 0:u);return()=>n.mask?nt("div",{class:[o.b(),n.overlayClass],style:{zIndex:n.zIndex},onClick:c,onMousedown:_,onMouseup:l},[ft(e,"default")],Ai.STYLE|Ai.CLASS|Ai.PROPS,["onClick","onMouseup","onMousedown"]):jr("div",{class:n.overlayClass,style:{zIndex:n.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ft(e,"default")])}});const V0=HS,$0=Symbol("dialogInjectionKey"),W0=nn({center:Boolean,alignCenter:Boolean,closeIcon:{type:XE},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),VS={close:()=>!0},$S=["aria-label"],WS=["id"],KS=yt({name:"ElDialogContent"}),QS=yt({...KS,props:W0,emits:VS,setup(n){const e=n,{t:r}=D0(),{Close:o}=JE,{dialogRef:u,headerRef:c,bodyId:_,ns:l,style:d}=td($0),{focusTrapRef:p}=td(ZE),S=rt(()=>[l.b(),l.is("fullscreen",e.fullscreen),l.is("draggable",e.draggable),l.is("align-center",e.alignCenter),{[l.m("center")]:e.center},e.customClass]),T=MS(p,u),v=rt(()=>e.draggable);return LS(u,c,v),(R,O)=>(ye(),at("div",{ref:j(T),class:We(j(S)),style:_r(j(d)),tabindex:"-1"},[Xe("header",{ref_key:"headerRef",ref:c,class:We(j(l).e("header"))},[ft(R.$slots,"header",{Line truncated
|
||||
import{t as $E,F as WE,U as I0,u as Ju,h as pa,a as D0,E as KE}from"./el-input-1fa85f7c.js";import{a3 as x0,P as Cc,aC as QE,Q as XE,aD as ga,J as ZE,u as rn,aE as JE,F as w0,aF as ju,O as bc,H as jE,I as eS,aG as tS,D as rS,ai as Ni,b as nn,j as xr,d as yt,o as Re,V as Xe,e as We,f as J,r as ft,Z as tr,X as _t,W as Gt,S as je,g as _r,_ as In,i as ba,B as at,z as jr,aH as nS,aj as M0,k as ed,c as nt,w as Pe,a as St,h as L0,L as Ta,aI as aS,af as iS,aJ as oS,s as At,aK as sS,aL as lS,n as cS,aM as uS,aN as td,av as dS,p as _S,A as k0,ay as P0,ax as mS,C as B0,T as F0,aO as U0,an as G0,R as la,U as pS,aP as gS,al as ES,aQ as SS,am as fS,G as rd,aR as q0,t as nd,aS as Y0,a8 as hS,a6 as z0,a9 as ad,aa as id,aB as bS,a5 as TS,aT as vS,aU as CS,aV as RS,ab as NS,aW as AS,aX as yS,ac as OS}from"./index-098ca3b6.js";import{g as IS,E as DS}from"./el-tag-3005f0d6.js";import{g as va,a as xS,c as wS}from"./_commonjsHelpers-de833af9.js";import{P as Ai}from"./vnode-1dbdb4af.js";const MS=(...n)=>e=>{n.forEach(r=>{x0(r)?r(e):r.value=e})},LS=(n,e,r)=>{let o={offsetX:0,offsetY:0};const u=l=>{const d=l.clientX,p=l.clientY,{offsetX:S,offsetY:T}=o,C=n.value.getBoundingClientRect(),R=C.left,O=C.top,w=C.width,L=C.height,I=document.documentElement.clientWidth,F=document.documentElement.clientHeight,k=-R+S,q=-O+T,G=I-R-w+S,U=F-O-L+T,Q=ie=>{const ee=Math.min(Math.max(S+ie.clientX-d,k),G),Z=Math.min(Math.max(T+ie.clientY-p,q),U);o={offsetX:ee,offsetY:Z},n.value.style.transform=`translate(${ga(ee)}, ${ga(Z)})`},W=()=>{document.removeEventListener("mousemove",Q),document.removeEventListener("mouseup",W)};document.addEventListener("mousemove",Q),document.addEventListener("mouseup",W)},c=()=>{e.value&&n.value&&e.value.addEventListener("mousedown",u)},_=()=>{e.value&&n.value&&e.value.removeEventListener("mousedown",u)};Cc(()=>{QE(()=>{r.value?c():_()})}),XE(()=>{_()})},kS=(n,e={})=>{ZE(n)||$E("[useLockscreen]","You need to pass a ref param to this function");const r=e.ns||rn("popup"),o=JE(()=>r.bm("parent","hidden"));if(!w0||ju(document.body,o.value))return;let u=0,c=!1,_="0";const l=()=>{setTimeout(()=>{rS(document==null?void 0:document.body,o.value),c&&document&&(document.body.style.width=_)},200)};bc(n,d=>{if(!d){l();return}c=!ju(document.body,o.value),c&&(_=document.body.style.width),u=IS(r.namespace.value);const p=document.documentElement.clientHeight<document.body.scrollHeight,S=jE(document.body,"overflowY");u>0&&(p||S==="scroll")&&c&&(document.body.style.width=`calc(100% - ${u}px)`),eS(document.body,o.value)}),tS(()=>l())},H0=n=>{if(!n)return{onClick:Ni,onMousedown:Ni,onMouseup:Ni};let e=!1,r=!1;return{onClick:_=>{e&&r&&n(_),e=r=!1},onMousedown:_=>{e=_.target===_.currentTarget},onMouseup:_=>{r=_.target===_.currentTarget}}},PS=nn({header:{type:String,default:""},bodyStyle:{type:xr([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),BS=yt({name:"ElCard"}),FS=yt({...BS,props:PS,setup(n){const e=rn("card");return(r,o)=>(Re(),Xe("div",{class:We([J(e).b(),J(e).is(`${r.shadow}-shadow`)])},[r.$slots.header||r.header?(Re(),Xe("div",{key:0,class:We(J(e).e("header"))},[ft(r.$slots,"header",{},()=>[tr(_t(r.header),1)])],2)):Gt("v-if",!0),je("div",{class:We(J(e).e("body")),style:_r(r.bodyStyle)},[ft(r.$slots,"default")],6)],2))}});var US=In(FS,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const GS=ba(US),qS=nn({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:xr([String,Array,Object])},zIndex:{type:xr([String,Number])}}),YS={click:n=>n instanceof MouseEvent},zS="overlay";var HS=yt({name:"ElOverlay",props:qS,emits:YS,setup(n,{slots:e,emit:r}){const o=rn(zS),u=d=>{r("click",d)},{onClick:c,onMousedown:_,onMouseup:l}=H0(n.customMaskEvent?void 0:u);return()=>n.mask?at("div",{class:[o.b(),n.overlayClass],style:{zIndex:n.zIndex},onClick:c,onMousedown:_,onMouseup:l},[ft(e,"default")],Ai.STYLE|Ai.CLASS|Ai.PROPS,["onClick","onMouseup","onMousedown"]):jr("div",{class:n.overlayClass,style:{zIndex:n.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[ft(e,"default")])}});const V0=HS,$0=Symbol("dialogInjectionKey"),W0=nn({center:Boolean,alignCenter:Boolean,closeIcon:{type:nS},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),VS={close:()=>!0},$S=["aria-label"],WS=["id"],KS=yt({name:"ElDialogContent"}),QS=yt({...KS,props:W0,emits:VS,setup(n){const e=n,{t:r}=M0(),{Close:o}=aS,{dialogRef:u,headerRef:c,bodyId:_,ns:l,style:d}=ed($0),{focusTrapRef:p}=ed(WE),S=nt(()=>[l.b(),l.is("fullscreen",e.fullscreen),l.is("draggable",e.draggable),l.is("align-center",e.alignCenter),{[l.m("center")]:e.center},e.customClass]),T=MS(p,u),C=nt(()=>e.draggable);return LS(u,c,C),(R,O)=>(Re(),Xe("div",{ref:J(T),class:We(J(S)),style:_r(J(d)),tabindex:"-1"},[je("header",{ref_key:"headerRef",ref:c,class:We(J(l).e("header"))},[Line truncated
|
||||
M 50 50
|
||||
m 0 ${F?"":"-"}${k}
|
||||
a ${k} ${k} 0 1 1 0 ${F?"-":""}${k*2}
|
||||
a ${k} ${k} 0 1 1 0 ${F?"":"-"}${k*2}
|
||||
`}),d=rt(()=>2*Math.PI*_.value),p=rt(()=>e.type==="dashboard"?.75:1),S=rt(()=>`${-1*d.value*(1-p.value)/2}px`),T=rt(()=>({strokeDasharray:`${d.value*p.value}px, ${d.value}px`,strokeDashoffset:S.value})),v=rt(()=>({strokeDasharray:`${d.value*p.value*(e.percentage/100)}px, ${d.value}px`,strokeDashoffset:S.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),R=rt(()=>{let k;return e.color?k=G(e.percentage):k=r[e.status]||r.default,k}),O=rt(()=>e.status==="warning"?nS:e.type==="line"?e.status==="success"?aS:iS:e.status==="success"?oS:M0),w=rt(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),L=rt(()=>e.format(e.percentage));function I(k){const F=100/k.length;return k.map((U,Z)=>rd(U)?{color:U,percentage:(Z+1)*F}:U).sort((U,Z)=>U.percentage-Z.percentage)}const G=k=>{var F;const{color:z}=e;if(L0(z))return z(k);if(rd(z))return z;{const U=I(z);for(const Z of U)if(Z.percentage>k)return Z.color;return(F=U[U.length-1])==null?void 0:F.color}};return(k,F)=>(ye(),at("div",{class:We([j(o).b(),j(o).m(k.type),j(o).is(k.status),{[j(o).m("without-text")]:!k.showText,[j(o).m("text-inside")]:k.textInside}]),role:"progressbar","aria-valuenow":k.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[k.type==="line"?(ye(),at("div",{key:0,class:We(j(o).b("bar"))},[Xe("div",{class:We(j(o).be("bar","outer")),style:_r({height:`${k.strokeWidth}px`})},[Xe("div",{class:We([j(o).be("bar","inner"),{[j(o).bem("bar","inner","indeterminate")]:k.indeterminate},{[j(o).bem("bar","inner","striped")]:k.striped},{[j(o).bem("bar","inner","striped-flow")]:k.stripedFlow}]),style:_r(j(u))},[(k.showText||k.$slots.default)&&k.textInside?(ye(),at("div",{key:0,class:We(j(o).be("bar","innerText"))},[ft(k.$slots,"default",{percentage:k.percentage},()=>[Xe("span",null,_t(j(L)),1)])],2)):Gt("v-if",!0)],6)],6)],2)):(ye(),at("div",{key:1,class:We(j(o).b("circle")),style:_r({height:`${k.width}px`,width:`${k.width}px`})},[(ye(),at("svg",gf,[Xe("path",{class:We(j(o).be("circle","track")),d:j(l),stroke:`var(${j(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":k.strokeLinecap,"stroke-width":j(c),fill:"none",style:_r(j(T))},null,14,Ef),Xe("path",{class:We(j(o).be("circle","path")),d:j(l),stroke:j(R),fill:"none",opacity:k.percentage?1:0,"stroke-linecap":k.strokeLinecap,"stroke-width":j(c),style:_r(j(v))},null,14,Sf)]))],6)),(k.showText||k.$slots.default)&&!k.textInside?(ye(),at("div",{key:2,class:We(j(o).e("text")),style:_r({fontSize:`${j(w)}px`})},[ft(k.$slots,"default",{percentage:k.percentage},()=>[k.status?(ye(),St(j(Ta),{key:1},{default:Pe(()=>[(ye(),St(k0(j(O))))]),_:1})):(ye(),at("span",ff,_t(j(L)),1))])],6)):Gt("v-if",!0)],10,pf))}});var Tf=In(bf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const vf=ba(Tf);const Cf=q0("fileData",()=>{const n=nd(JSON.parse(localStorage.getItem("receiveData")||"[]")||[]),e=nd(JSON.parse(localStorage.getItem("shareData")||"[]")||[]);function r(){localStorage.setItem("receiveData",JSON.stringify(n)),localStorage.setItem("shareData",JSON.stringify(e))}function o(l){n.push(l),r()}function u(l){e.push(l),r()}function c(l){n.splice(l,1),r()}function _(l){e.splice(l,1),r()}return{receiveData:n,shareData:e,save:r,addShareData:u,addReceiveData:o,deleteReceiveData:c,deleteShareData:_}}),Z0=q0("fileBox",()=>({showFileBox:At(!1)}));function J0(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const r=n[e],o=typeof r;(o==="object"||o==="function")&&!Object.isFrozen(r)&&J0(r)}),n}class od{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function j0(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Rr(n,...e){const r=Object.create(null);for(const o in n)r[o]=n[o];return e.forEach(function(o){for(const u in o)r[u]=o[u]}),r}const Rf="</span>",sd=n=>!!n.scope,Nf=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const r=n.split(".");return[`${e}${r.shift()}`,...r.map((o,u)=>`${o}${"_".repeat(u+1)}`)].join(" ")}return`${e}${n}`};class Af{constructor(e,r){this.buffer="",this.classPrefix=r.classPrefix,e.walk(this)}addText(e){this.buffer+=j0(e)}openNode(e){if(!sd(e))return;const r=Nf(e.scope,{prefix:this.classPrefix});this.span(r)}closeNode(e){sd(e)&&(this.buffer+=Rf)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const ld=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class Rc{constructor(){this.rootNode=ld(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const r=ld({scope:e});thiLine truncated
|
||||
https://github.com/highlightjs/highlight.js/issues/2277`),ne=Q,Re=se),be===void 0&&(be=!0);const ze={code:Re,language:ne};ue("before:highlight",ze);const je=ze.result?ze.result:T(ze.language,ze.code,be);return je.code=ze.code,ue("after:highlight",je),je}function T(Q,se,be,Re){const ne=Object.create(null);function ze(oe,me){return oe.keywords[me]}function je(){if(!ge.keywords){Ve.addText(Oe);return}let oe=0;ge.keywordPatternRe.lastIndex=0;let me=ge.keywordPatternRe.exec(Oe),Ce="";for(;me;){Ce+=Oe.substring(oe,me.index);const xe=pt.case_insensitive?me[0].toLowerCase():me[0],et=ze(ge,xe);if(et){const[Ct,Ue]=et;if(Ve.addText(Ce),Ce="",ne[xe]=(ne[xe]||0)+1,ne[xe]<=gh&&(Lt+=Ue),Ct.startsWith("_"))Ce+=me[0];else{const Ge=pt.classNameAliases[Ct]||Ct;Ie(me[0],Ge)}}else Ce+=me[0];oe=ge.keywordPatternRe.lastIndex,me=ge.keywordPatternRe.exec(Oe)}Ce+=Oe.substring(oe),Ve.addText(Ce)}function Ke(){if(Oe==="")return;let oe=null;if(typeof ge.subLanguage=="string"){if(!e[ge.subLanguage]){Ve.addText(Oe);return}oe=T(ge.subLanguage,Oe,!0,zt[ge.subLanguage]),zt[ge.subLanguage]=oe._top}else oe=R(Oe,ge.subLanguage.length?ge.subLanguage:null);ge.relevance>0&&(Lt+=oe.relevance),Ve.__addSublanguage(oe._emitter,oe.language)}function De(){ge.subLanguage!=null?Ke():je(),Oe=""}function Ie(oe,me){oe!==""&&(Ve.startScope(me),Ve.addText(oe),Ve.endScope())}function Fe(oe,me){let Ce=1;const xe=me.length-1;for(;Ce<=xe;){if(!oe._emit[Ce]){Ce++;continue}const et=pt.classNameAliases[oe[Ce]]||oe[Ce],Ct=me[Ce];et?Ie(Ct,et):(Oe=Ct,je(),Oe=""),Ce++}}function we(oe,me){return oe.scope&&typeof oe.scope=="string"&&Ve.openNode(pt.classNameAliases[oe.scope]||oe.scope),oe.beginScope&&(oe.beginScope._wrap?(Ie(Oe,pt.classNameAliases[oe.beginScope._wrap]||oe.beginScope._wrap),Oe=""):oe.beginScope._multi&&(Fe(oe.beginScope,me),Oe="")),ge=Object.create(oe,{parent:{value:ge}}),ge}function He(oe,me,Ce){let xe=xf(oe.endRe,Ce);if(xe){if(oe["on:end"]){const et=new od(oe);oe["on:end"](me,et),et.isMatchIgnored&&(xe=!1)}if(xe){for(;oe.endsParent&&oe.parent;)oe=oe.parent;return oe}}if(oe.endsWithParent)return He(oe.parent,me,Ce)}function it(oe){return ge.matcher.regexIndex===0?(Oe+=oe[0],1):(Qt=!0,0)}function ot(oe){const me=oe[0],Ce=oe.rule,xe=new od(Ce),et=[Ce.__beforeBegin,Ce["on:begin"]];for(const Ct of et)if(Ct&&(Ct(oe,xe),xe.isMatchIgnored))return it(me);return Ce.skip?Oe+=me:(Ce.excludeBegin&&(Oe+=me),De(),!Ce.returnBegin&&!Ce.excludeBegin&&(Oe=me)),we(Ce,oe),Ce.returnBegin?0:me.length}function mt(oe){const me=oe[0],Ce=se.substring(oe.index),xe=He(ge,oe,Ce);if(!xe)return _d;const et=ge;ge.endScope&&ge.endScope._wrap?(De(),Ie(me,ge.endScope._wrap)):ge.endScope&&ge.endScope._multi?(De(),Fe(ge.endScope,oe)):et.skip?Oe+=me:(et.returnEnd||et.excludeEnd||(Oe+=me),De(),et.excludeEnd&&(Oe=me));do ge.scope&&Ve.closeNode(),!ge.skip&&!ge.subLanguage&&(Lt+=ge.relevance),ge=ge.parent;while(ge!==xe.parent);return xe.starts&&we(xe.starts,oe),et.returnEnd?0:me.length}function Tt(){const oe=[];for(let me=ge;me!==pt;me=me.parent)me.scope&&oe.unshift(me.scope);oe.forEach(me=>Ve.openNode(me))}let Yt={};function mr(oe,me){const Ce=me&&me[0];if(Oe+=oe,Ce==null)return De(),0;if(Yt.type==="begin"&&me.type==="end"&&Yt.index===me.index&&Ce===""){if(Oe+=se.slice(me.index,me.index+1),!u){const xe=new Error(`0 width match regex (${Q})`);throw xe.languageName=Q,xe.badRule=Yt.rule,xe}return 1}if(Yt=me,me.type==="begin")return ot(me);if(me.type==="illegal"&&!be){const xe=new Error('Illegal lexeme "'+Ce+'" for mode "'+(ge.scope||"<unnamed>")+'"');throw xe.mode=ge,xe}else if(me.type==="end"){const xe=mt(me);if(xe!==_d)return xe}if(me.type==="illegal"&&Ce==="")return 1;if(Kt>1e5&&Kt>me.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Oe+=Ce,Ce.length}const pt=ie(Q);if(!pt)throw wr(c.replace("{}",Q)),new Error('Unknown language: "'+Q+'"');const or=dh(pt);let Dt="",ge=Re||or;const zt={},Ve=new l.__emitter(l);Tt();let Oe="",Lt=0,vt=0,Kt=0,Qt=!1;try{if(pt.__emitTokens)pt.__emitTokens(se,Ve);else{for(ge.matcher.considerAll();;){Kt++,Qt?Qt=!1:ge.matcher.considerAll(),ge.matcher.lastIndex=vt;const oe=ge.matcher.exec(se);if(!oe)break;const me=se.substring(vt,oe.index),Ce=mr(me,oe);vt=oe.index+Ce}mr(se.substring(vt))}return Ve.finalize(),Dt=Ve.toHTML(),{language:Q,value:Dt,relevance:Lt,illegal:!1,_emitter:Ve,_top:ge}}catch(oe){if(oe.message&&oe.message.includes("Illegal"))return{language:Q,value:yi(se),illegal:!0,relevance:0,_illegalBy:{message:oe.message,index:vt,context:se.slice(vt-100,vt+100),mode:oe.mode,resultSoFar:Dt},_emitter:Ve};if(u)return{language:Q,value:yi(se),illegal:!1,relevance:0,errorRaised:oe,_emitter:Ve,_top:ge};throw oe}}function v(Q){const se={value:yi(Q),illegal:!1,relevance:0,_top:_,_emitter:new l.__emitter(l)};return se._emitter.addText(Q),se}function R(Q,se){se=se||l.languages||Object.keys(e);const be=v(Q),Re=se.filter(ie).filter(X).map(De=>T(De,Q,!1));Re.unshift(be);const ne=Re.sort((De,Ie)=>{if(De.relevance!==Ie.relevance)return Ie.relevLine truncated
|
||||
`},O]}}return ms=u,ms}var ps,J_;function rT(){if(J_)return ps;J_=1;function n(e){const r="[a-zA-Z_][\\w.]*",o="<\\?(lasso(script)?|=)",u="\\]|\\?>",c={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},_=e.COMMENT("<!--","-->",{relevance:0}),l={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[_]}},d={className:"meta",begin:"\\[/noprocess|"+o},p={className:"symbol",begin:"'"+r+"'"},S=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[p]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:c,contains:[{className:"meta",begin:u,relevance:0,starts:{end:"\\[|"+o,returnEnd:!0,relevance:0,contains:[_]}},l,d,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:c,contains:[{className:"meta",begin:u,relevance:0,starts:{end:"\\[noprocess\\]|"+o,returnEnd:!0,contains:[_]}},l,d].concat(S)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(S)}}return ps=n,ps}var gs,j_;function nT(){if(j_)return gs;j_=1;function n(e){const o=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(X=>X+"(?![a-zA-Z@:_])")),u=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(X=>X+"(?![a-zA-Z:_])").join("|")),c=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],_=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],l={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:o},{endsParent:!0,begin:u},{endsParent:!0,variants:_},{endsParent:!0,relevance:0,variants:c}]},d={className:"params",relevance:0,begin:/#+\d?/},p={variants:_},S={className:"built_in",relevance:0,begin:/[$&^_]/},T={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},v=e.COMMENT("%","$",{relevance:0}),R=[l,d,p,S,T,v],O={begin:/\{/,end:/\}/,relevance:0,contains:["self",...R]},w=e.inherit(Line truncated
|
||||
]`,O={scope:"string",variants:[S,p,T,v]},w={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},L=["false","null","true"],I=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],G=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],F={keyword:I,literal:($=>{const ue=[];return $.forEach(pe=>{ue.push(pe),pe.toLowerCase()===pe?ue.push(pe.toUpperCase()):ue.push(pe.toLowerCase())}),ue})(L),built_in:G},z=$=>$.map(ue=>ue.replace(/\|\d+$/,"")),U={variants:[{match:[/new/,r.concat(R,"+"),r.concat("(?!",z(G).join("\\b|"),"\\b)"),c],scope:{1:"keyword",4:"title.class"}}]},Z=r.concat(u,"\\b(?!\\()"),W={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),Z],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[c,r.concat(/::/,r.lookahead(/(?!class\b)/)),Z],scope:{1:"title.class",3:"variable.constant"}},{match:[c,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[c,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ie={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},ee={relevance:0,begin:/\(/,end:/\)/,keywords:F,contains:[ie,_,W,e.C_BLOCK_COMMENT_MODE,O,w,U]},X={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",z(I).join("\\b|"),"|",z(G).join("\\b|"),"\\b)"),u,r.concat(R,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ee]};ee.contains.push(X);const Se=[ie,W,e.C_BLOCK_COMMENT_MODE,O,w,U],Te={begin:r.concat(/#\[\s*/,c),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:L,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:L,keyword:["new","array"]},contains:["self",...Se]},...Se,{scope:"meta",match:c}]};return{case_insensitive:!1,keywords:F,contains:[Te,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},l,{scope:"variable.language",match:/\$this\b/},_,X,W,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},U,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:F,contains:["self",_,W,e.C_BLOCK_COMMENT_MODE,O,w]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trLine truncated
|
||||
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return yl=n,yl}var Ol,_p;function Ev(){if(_p)return Ol;_p=1;function n(e){const r="[a-z][a-zA-Z0-9_]*",o={className:"string",begin:"\\$.{1}"},u={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},e.C_NUMBER_MODE,u,o,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,o,e.C_NUMBER_MODE,u]}]}}return Ol=n,Ol}var Il,mp;function Sv(){if(mp)return Il;mp=1;function n(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return Il=n,Il}var Dl,pp;function fv(){if(pp)return Dl;pp=1;function n(e){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},o={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},u={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},c=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],_=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],l=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSitesLine truncated
|
||||
m 0 ${q?"":"-"}${k}
|
||||
a ${k} ${k} 0 1 1 0 ${q?"-":""}${k*2}
|
||||
a ${k} ${k} 0 1 1 0 ${q?"":"-"}${k*2}
|
||||
`}),d=nt(()=>2*Math.PI*_.value),p=nt(()=>e.type==="dashboard"?.75:1),S=nt(()=>`${-1*d.value*(1-p.value)/2}px`),T=nt(()=>({strokeDasharray:`${d.value*p.value}px, ${d.value}px`,strokeDashoffset:S.value})),C=nt(()=>({strokeDasharray:`${d.value*p.value*(e.percentage/100)}px, ${d.value}px`,strokeDashoffset:S.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),R=nt(()=>{let k;return e.color?k=F(e.percentage):k=r[e.status]||r.default,k}),O=nt(()=>e.status==="warning"?gS:e.type==="line"?e.status==="success"?ES:SS:e.status==="success"?fS:G0),w=nt(()=>e.type==="line"?12+e.strokeWidth*.4:e.width*.111111+2),L=nt(()=>e.format(e.percentage));function I(k){const q=100/k.length;return k.map((U,Q)=>rd(U)?{color:U,percentage:(Q+1)*q}:U).sort((U,Q)=>U.percentage-Q.percentage)}const F=k=>{var q;const{color:G}=e;if(x0(G))return G(k);if(rd(G))return G;{const U=I(G);for(const Q of U)if(Q.percentage>k)return Q.color;return(q=U[U.length-1])==null?void 0:q.color}};return(k,q)=>(Re(),Xe("div",{class:We([J(o).b(),J(o).m(k.type),J(o).is(k.status),{[J(o).m("without-text")]:!k.showText,[J(o).m("text-inside")]:k.textInside}]),role:"progressbar","aria-valuenow":k.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[k.type==="line"?(Re(),Xe("div",{key:0,class:We(J(o).b("bar"))},[je("div",{class:We(J(o).be("bar","outer")),style:_r({height:`${k.strokeWidth}px`})},[je("div",{class:We([J(o).be("bar","inner"),{[J(o).bem("bar","inner","indeterminate")]:k.indeterminate},{[J(o).bem("bar","inner","striped")]:k.striped},{[J(o).bem("bar","inner","striped-flow")]:k.stripedFlow}]),style:_r(J(u))},[(k.showText||k.$slots.default)&&k.textInside?(Re(),Xe("div",{key:0,class:We(J(o).be("bar","innerText"))},[ft(k.$slots,"default",{percentage:k.percentage},()=>[je("span",null,_t(J(L)),1)])],2)):Gt("v-if",!0)],6)],6)],2)):(Re(),Xe("div",{key:1,class:We(J(o).b("circle")),style:_r({height:`${k.width}px`,width:`${k.width}px`})},[(Re(),Xe("svg",gf,[je("path",{class:We(J(o).be("circle","track")),d:J(l),stroke:`var(${J(o).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":k.strokeLinecap,"stroke-width":J(c),fill:"none",style:_r(J(T))},null,14,Ef),je("path",{class:We(J(o).be("circle","path")),d:J(l),stroke:J(R),fill:"none",opacity:k.percentage?1:0,"stroke-linecap":k.strokeLinecap,"stroke-width":J(c),style:_r(J(C))},null,14,Sf)]))],6)),(k.showText||k.$slots.default)&&!k.textInside?(Re(),Xe("div",{key:2,class:We(J(o).e("text")),style:_r({fontSize:`${J(w)}px`})},[ft(k.$slots,"default",{percentage:k.percentage},()=>[k.status?(Re(),St(J(Ta),{key:1},{default:Pe(()=>[(Re(),St(L0(J(O))))]),_:1})):(Re(),Xe("span",ff,_t(J(L)),1))])],6)):Gt("v-if",!0)],10,pf))}});var Tf=In(bf,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const vf=ba(Tf);const Cf=q0("fileData",()=>{const n=nd(JSON.parse(localStorage.getItem("receiveData")||"[]")||[]),e=nd(JSON.parse(localStorage.getItem("shareData")||"[]")||[]);function r(){localStorage.setItem("receiveData",JSON.stringify(n)),localStorage.setItem("shareData",JSON.stringify(e))}function o(l){n.unshift(l),r()}function u(l){e.unshift(l),r()}function c(l){n.splice(l,1),r()}function _(l){e.splice(l,1),r()}return{receiveData:n,shareData:e,save:r,addShareData:u,addReceiveData:o,deleteReceiveData:c,deleteShareData:_}}),Z0=q0("fileBox",()=>({showFileBox:At(!1)}));function J0(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(e=>{const r=n[e],o=typeof r;(o==="object"||o==="function")&&!Object.isFrozen(r)&&J0(r)}),n}class od{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function j0(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Rr(n,...e){const r=Object.create(null);for(const o in n)r[o]=n[o];return e.forEach(function(o){for(const u in o)r[u]=o[u]}),r}const Rf="</span>",sd=n=>!!n.scope,Nf=(n,{prefix:e})=>{if(n.startsWith("language:"))return n.replace("language:","language-");if(n.includes(".")){const r=n.split(".");return[`${e}${r.shift()}`,...r.map((o,u)=>`${o}${"_".repeat(u+1)}`)].join(" ")}return`${e}${n}`};class Af{constructor(e,r){this.buffer="",this.classPrefix=r.classPrefix,e.walk(this)}addText(e){this.buffer+=j0(e)}openNode(e){if(!sd(e))return;const r=Nf(e.scope,{prefix:this.classPrefix});this.span(r)}closeNode(e){sd(e)&&(this.buffer+=Rf)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const ld=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class Rc{constructor(){this.rootNode=ld(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const r=ld({scope:eLine truncated
|
||||
https://github.com/highlightjs/highlight.js/issues/2277`),ne=X,Ne=se),be===void 0&&(be=!0);const ze={code:Ne,language:ne};ue("before:highlight",ze);const et=ze.result?ze.result:T(ze.language,ze.code,be);return et.code=ze.code,ue("after:highlight",et),et}function T(X,se,be,Ne){const ne=Object.create(null);function ze(oe,me){return oe.keywords[me]}function et(){if(!ge.keywords){Ve.addText(Oe);return}let oe=0;ge.keywordPatternRe.lastIndex=0;let me=ge.keywordPatternRe.exec(Oe),Ce="";for(;me;){Ce+=Oe.substring(oe,me.index);const xe=pt.case_insensitive?me[0].toLowerCase():me[0],tt=ze(ge,xe);if(tt){const[Ct,Ue]=tt;if(Ve.addText(Ce),Ce="",ne[xe]=(ne[xe]||0)+1,ne[xe]<=gh&&(Lt+=Ue),Ct.startsWith("_"))Ce+=me[0];else{const Ge=pt.classNameAliases[Ct]||Ct;Ie(me[0],Ge)}}else Ce+=me[0];oe=ge.keywordPatternRe.lastIndex,me=ge.keywordPatternRe.exec(Oe)}Ce+=Oe.substring(oe),Ve.addText(Ce)}function Ke(){if(Oe==="")return;let oe=null;if(typeof ge.subLanguage=="string"){if(!e[ge.subLanguage]){Ve.addText(Oe);return}oe=T(ge.subLanguage,Oe,!0,zt[ge.subLanguage]),zt[ge.subLanguage]=oe._top}else oe=R(Oe,ge.subLanguage.length?ge.subLanguage:null);ge.relevance>0&&(Lt+=oe.relevance),Ve.__addSublanguage(oe._emitter,oe.language)}function De(){ge.subLanguage!=null?Ke():et(),Oe=""}function Ie(oe,me){oe!==""&&(Ve.startScope(me),Ve.addText(oe),Ve.endScope())}function Fe(oe,me){let Ce=1;const xe=me.length-1;for(;Ce<=xe;){if(!oe._emit[Ce]){Ce++;continue}const tt=pt.classNameAliases[oe[Ce]]||oe[Ce],Ct=me[Ce];tt?Ie(Ct,tt):(Oe=Ct,et(),Oe=""),Ce++}}function we(oe,me){return oe.scope&&typeof oe.scope=="string"&&Ve.openNode(pt.classNameAliases[oe.scope]||oe.scope),oe.beginScope&&(oe.beginScope._wrap?(Ie(Oe,pt.classNameAliases[oe.beginScope._wrap]||oe.beginScope._wrap),Oe=""):oe.beginScope._multi&&(Fe(oe.beginScope,me),Oe="")),ge=Object.create(oe,{parent:{value:ge}}),ge}function He(oe,me,Ce){let xe=xf(oe.endRe,Ce);if(xe){if(oe["on:end"]){const tt=new od(oe);oe["on:end"](me,tt),tt.isMatchIgnored&&(xe=!1)}if(xe){for(;oe.endsParent&&oe.parent;)oe=oe.parent;return oe}}if(oe.endsWithParent)return He(oe.parent,me,Ce)}function it(oe){return ge.matcher.regexIndex===0?(Oe+=oe[0],1):(Qt=!0,0)}function ot(oe){const me=oe[0],Ce=oe.rule,xe=new od(Ce),tt=[Ce.__beforeBegin,Ce["on:begin"]];for(const Ct of tt)if(Ct&&(Ct(oe,xe),xe.isMatchIgnored))return it(me);return Ce.skip?Oe+=me:(Ce.excludeBegin&&(Oe+=me),De(),!Ce.returnBegin&&!Ce.excludeBegin&&(Oe=me)),we(Ce,oe),Ce.returnBegin?0:me.length}function mt(oe){const me=oe[0],Ce=se.substring(oe.index),xe=He(ge,oe,Ce);if(!xe)return _d;const tt=ge;ge.endScope&&ge.endScope._wrap?(De(),Ie(me,ge.endScope._wrap)):ge.endScope&&ge.endScope._multi?(De(),Fe(ge.endScope,oe)):tt.skip?Oe+=me:(tt.returnEnd||tt.excludeEnd||(Oe+=me),De(),tt.excludeEnd&&(Oe=me));do ge.scope&&Ve.closeNode(),!ge.skip&&!ge.subLanguage&&(Lt+=ge.relevance),ge=ge.parent;while(ge!==xe.parent);return xe.starts&&we(xe.starts,oe),tt.returnEnd?0:me.length}function Tt(){const oe=[];for(let me=ge;me!==pt;me=me.parent)me.scope&&oe.unshift(me.scope);oe.forEach(me=>Ve.openNode(me))}let Yt={};function mr(oe,me){const Ce=me&&me[0];if(Oe+=oe,Ce==null)return De(),0;if(Yt.type==="begin"&&me.type==="end"&&Yt.index===me.index&&Ce===""){if(Oe+=se.slice(me.index,me.index+1),!u){const xe=new Error(`0 width match regex (${X})`);throw xe.languageName=X,xe.badRule=Yt.rule,xe}return 1}if(Yt=me,me.type==="begin")return ot(me);if(me.type==="illegal"&&!be){const xe=new Error('Illegal lexeme "'+Ce+'" for mode "'+(ge.scope||"<unnamed>")+'"');throw xe.mode=ge,xe}else if(me.type==="end"){const xe=mt(me);if(xe!==_d)return xe}if(me.type==="illegal"&&Ce==="")return 1;if(Kt>1e5&&Kt>me.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Oe+=Ce,Ce.length}const pt=ie(X);if(!pt)throw wr(c.replace("{}",X)),new Error('Unknown language: "'+X+'"');const or=dh(pt);let Dt="",ge=Ne||or;const zt={},Ve=new l.__emitter(l);Tt();let Oe="",Lt=0,vt=0,Kt=0,Qt=!1;try{if(pt.__emitTokens)pt.__emitTokens(se,Ve);else{for(ge.matcher.considerAll();;){Kt++,Qt?Qt=!1:ge.matcher.considerAll(),ge.matcher.lastIndex=vt;const oe=ge.matcher.exec(se);if(!oe)break;const me=se.substring(vt,oe.index),Ce=mr(me,oe);vt=oe.index+Ce}mr(se.substring(vt))}return Ve.finalize(),Dt=Ve.toHTML(),{language:X,value:Dt,relevance:Lt,illegal:!1,_emitter:Ve,_top:ge}}catch(oe){if(oe.message&&oe.message.includes("Illegal"))return{language:X,value:yi(se),illegal:!0,relevance:0,_illegalBy:{message:oe.message,index:vt,context:se.slice(vt-100,vt+100),mode:oe.mode,resultSoFar:Dt},_emitter:Ve};if(u)return{language:X,value:yi(se),illegal:!1,relevance:0,errorRaised:oe,_emitter:Ve,_top:ge};throw oe}}function C(X){const se={value:yi(X),illegal:!1,relevance:0,_top:_,_emitter:new l.__emitter(l)};return se._emitter.addText(X),se}function R(X,se){se=se||l.languages||Object.keys(e);const be=C(X),Ne=se.filter(ie).filter(Z).map(De=>T(De,X,!1));Ne.unshift(be);const ne=Ne.sort((De,Ie)=>{if(De.relevance!==Ie.relevance)return Ie.relevLine truncated
|
||||
`},O]}}return ms=u,ms}var ps,J_;function rT(){if(J_)return ps;J_=1;function n(e){const r="[a-zA-Z_][\\w.]*",o="<\\?(lasso(script)?|=)",u="\\]|\\?>",c={$pattern:r+"|&[lg]t;",literal:"true false none minimal full all void and or not bw nbw ew new cn ncn lt lte gt gte eq neq rx nrx ft",built_in:"array date decimal duration integer map pair string tag xml null boolean bytes keyword list locale queue set stack staticarray local var variable global data self inherited currentcapture givenblock",keyword:"cache database_names database_schemanames database_tablenames define_tag define_type email_batch encode_set html_comment handle handle_error header if inline iterate ljax_target link link_currentaction link_currentgroup link_currentrecord link_detail link_firstgroup link_firstrecord link_lastgroup link_lastrecord link_nextgroup link_nextrecord link_prevgroup link_prevrecord log loop namespace_using output_none portal private protect records referer referrer repeating resultset rows search_args search_arguments select sort_args sort_arguments thread_atomic value_list while abort case else fail_if fail_ifnot fail if_empty if_false if_null if_true loop_abort loop_continue loop_count params params_up return return_value run_children soap_definetag soap_lastrequest soap_lastresponse tag_name ascending average by define descending do equals frozen group handle_failure import in into join let match max min on order parent protected provide public require returnhome skip split_thread sum take thread to trait type where with yield yieldhome"},_=e.COMMENT("<!--","-->",{relevance:0}),l={className:"meta",begin:"\\[noprocess\\]",starts:{end:"\\[/noprocess\\]",returnEnd:!0,contains:[_]}},d={className:"meta",begin:"\\[/noprocess|"+o},p={className:"symbol",begin:"'"+r+"'"},S=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.inherit(e.C_NUMBER_MODE,{begin:e.C_NUMBER_RE+"|(-?infinity|NaN)\\b"}),e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"`",end:"`"},{variants:[{begin:"[#$]"+r},{begin:"#",end:"\\d+",illegal:"\\W"}]},{className:"type",begin:"::\\s*",end:r,illegal:"\\W"},{className:"params",variants:[{begin:"-(?!infinity)"+r,relevance:0},{begin:"(\\.\\.\\.)"}]},{begin:/(->|\.)\s*/,relevance:0,contains:[p]},{className:"class",beginKeywords:"define",returnEnd:!0,end:"\\(|=>",contains:[e.inherit(e.TITLE_MODE,{begin:r+"(=(?!>))?|[-+*/%](?!>)"})]}];return{name:"Lasso",aliases:["ls","lassoscript"],case_insensitive:!0,keywords:c,contains:[{className:"meta",begin:u,relevance:0,starts:{end:"\\[|"+o,returnEnd:!0,relevance:0,contains:[_]}},l,d,{className:"meta",begin:"\\[no_square_brackets",starts:{end:"\\[/no_square_brackets\\]",keywords:c,contains:[{className:"meta",begin:u,relevance:0,starts:{end:"\\[noprocess\\]|"+o,returnEnd:!0,contains:[_]}},l,d].concat(S)}},{className:"meta",begin:"\\[",relevance:0},{className:"meta",begin:"^#!",end:"lasso9$",relevance:10}].concat(S)}}return ps=n,ps}var gs,j_;function nT(){if(j_)return gs;j_=1;function n(e){const o=e.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(Z=>Z+"(?![a-zA-Z@:_])")),u=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(Z=>Z+"(?![a-zA-Z:_])").join("|")),c=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],_=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],l={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:o},{endsParent:!0,begin:u},{endsParent:!0,variants:_},{endsParent:!0,relevance:0,variants:c}]},d={className:"params",relevance:0,begin:/#+\d?/},p={variants:_},S={className:"built_in",relevance:0,begin:/[$&^_]/},T={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},C=e.COMMENT("%","$",{relevance:0}),R=[l,d,p,S,T,C],O={begin:/\{/,end:/\}/,relevance:0,contains:["self",...R]},w=e.inherit(Line truncated
|
||||
]`,O={scope:"string",variants:[S,p,T,C]},w={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},L=["false","null","true"],I=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],F=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],q={keyword:I,literal:($=>{const ue=[];return $.forEach(pe=>{ue.push(pe),pe.toLowerCase()===pe?ue.push(pe.toUpperCase()):ue.push(pe.toLowerCase())}),ue})(L),built_in:F},G=$=>$.map(ue=>ue.replace(/\|\d+$/,"")),U={variants:[{match:[/new/,r.concat(R,"+"),r.concat("(?!",G(F).join("\\b|"),"\\b)"),c],scope:{1:"keyword",4:"title.class"}}]},Q=r.concat(u,"\\b(?!\\()"),W={variants:[{match:[r.concat(/::/,r.lookahead(/(?!class\b)/)),Q],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[c,r.concat(/::/,r.lookahead(/(?!class\b)/)),Q],scope:{1:"title.class",3:"variable.constant"}},{match:[c,r.concat("::",r.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[c,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ie={scope:"attr",match:r.concat(u,r.lookahead(":"),r.lookahead(/(?!::)/))},ee={relevance:0,begin:/\(/,end:/\)/,keywords:q,contains:[ie,_,W,e.C_BLOCK_COMMENT_MODE,O,w,U]},Z={relevance:0,match:[/\b/,r.concat("(?!fn\\b|function\\b|",G(I).join("\\b|"),"|",G(F).join("\\b|"),"\\b)"),u,r.concat(R,"*"),r.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[ee]};ee.contains.push(Z);const Se=[ie,W,e.C_BLOCK_COMMENT_MODE,O,w,U],Te={begin:r.concat(/#\[\s*/,c),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:L,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:L,keyword:["new","array"]},contains:["self",...Se]},...Se,{scope:"meta",match:c}]};return{case_insensitive:!1,keywords:q,contains:[Te,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},l,{scope:"variable.language",match:/\$this\b/},_,Z,W,{match:[/const/,/\s/,u],scope:{1:"keyword",3:"variable.constant"}},U,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:q,contains:["self",_,W,e.C_BLOCK_COMMENT_MODE,O,w]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trLine truncated
|
||||
]*;`,relevance:0},{begin:"[vp][0-9]+"}]}}return yl=n,yl}var Ol,_p;function Ev(){if(_p)return Ol;_p=1;function n(e){const r="[a-z][a-zA-Z0-9_]*",o={className:"string",begin:"\\$.{1}"},u={className:"symbol",begin:"#"+e.UNDERSCORE_IDENT_RE};return{name:"Smalltalk",aliases:["st"],keywords:["self","super","nil","true","false","thisContext"],contains:[e.COMMENT('"','"'),e.APOS_STRING_MODE,{className:"type",begin:"\\b[A-Z][A-Za-z0-9_]*",relevance:0},{begin:r+":",relevance:0},e.C_NUMBER_MODE,u,o,{begin:"\\|[ ]*"+r+"([ ]+"+r+")*[ ]*\\|",returnBegin:!0,end:/\|/,illegal:/\S/,contains:[{begin:"(\\|[ ]*)?"+r}]},{begin:"#\\(",end:"\\)",contains:[e.APOS_STRING_MODE,o,e.C_NUMBER_MODE,u]}]}}return Ol=n,Ol}var Il,mp;function Sv(){if(mp)return Il;mp=1;function n(e){return{name:"SML (Standard ML)",aliases:["ml"],keywords:{$pattern:"[a-z_]\\w*!?",keyword:"abstype and andalso as case datatype do else end eqtype exception fn fun functor handle if in include infix infixr let local nonfix of op open orelse raise rec sharing sig signature struct structure then type val with withtype where while",built_in:"array bool char exn int list option order real ref string substring vector unit word",literal:"true false NONE SOME LESS EQUAL GREATER nil"},illegal:/\/\/|>>/,contains:[{className:"literal",begin:/\[(\|\|)?\]|\(\)/,relevance:0},e.COMMENT("\\(\\*","\\*\\)",{contains:["self"]}),{className:"symbol",begin:"'[A-Za-z_](?!')[\\w']*"},{className:"type",begin:"`[A-Z][\\w']*"},{className:"type",begin:"\\b[A-Z][\\w']*",relevance:0},{begin:"[a-z_]\\w*'[\\w']*"},e.inherit(e.APOS_STRING_MODE,{className:"string",relevance:0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"number",begin:"\\b(0[xX][a-fA-F0-9_]+[Lln]?|0[oO][0-7_]+[Lln]?|0[bB][01_]+[Lln]?|[0-9][0-9_]*([Lln]|(\\.[0-9_]*)?([eE][-+]?[0-9_]+)?)?)",relevance:0},{begin:/[-=]>/}]}}return Il=n,Il}var Dl,pp;function fv(){if(pp)return Dl;pp=1;function n(e){const r={className:"variable",begin:/\b_+[a-zA-Z]\w*/},o={className:"title",begin:/[a-zA-Z][a-zA-Z_0-9]*_fnc_[a-zA-Z_0-9]+/},u={className:"string",variants:[{begin:'"',end:'"',contains:[{begin:'""',relevance:0}]},{begin:"'",end:"'",contains:[{begin:"''",relevance:0}]}]},c=["break","breakWith","breakOut","breakTo","case","catch","continue","continueWith","default","do","else","exit","exitWith","for","forEach","from","if","local","private","switch","step","then","throw","to","try","waitUntil","while","with"],_=["blufor","civilian","configNull","controlNull","displayNull","diaryRecordNull","east","endl","false","grpNull","independent","lineBreak","locationNull","nil","objNull","opfor","pi","resistance","scriptNull","sideAmbientLife","sideEmpty","sideEnemy","sideFriendly","sideLogic","sideUnknown","taskNull","teamMemberNull","true","west"],l=["abs","accTime","acos","action","actionIDs","actionKeys","actionKeysEx","actionKeysImages","actionKeysNames","actionKeysNamesArray","actionName","actionParams","activateAddons","activatedAddons","activateKey","activeTitleEffectParams","add3DENConnection","add3DENEventHandler","add3DENLayer","addAction","addBackpack","addBackpackCargo","addBackpackCargoGlobal","addBackpackGlobal","addBinocularItem","addCamShake","addCuratorAddons","addCuratorCameraArea","addCuratorEditableObjects","addCuratorEditingArea","addCuratorPoints","addEditorObject","addEventHandler","addForce","addForceGeneratorRTD","addGoggles","addGroupIcon","addHandgunItem","addHeadgear","addItem","addItemCargo","addItemCargoGlobal","addItemPool","addItemToBackpack","addItemToUniform","addItemToVest","addLiveStats","addMagazine","addMagazineAmmoCargo","addMagazineCargo","addMagazineCargoGlobal","addMagazineGlobal","addMagazinePool","addMagazines","addMagazineTurret","addMenu","addMenuItem","addMissionEventHandler","addMPEventHandler","addMusicEventHandler","addonFiles","addOwnedMine","addPlayerScores","addPrimaryWeaponItem","addPublicVariableEventHandler","addRating","addResources","addScore","addScoreSide","addSecondaryWeaponItem","addSwitchableUnit","addTeamMember","addToRemainsCollector","addTorque","addUniform","addUserActionEventHandler","addVehicle","addVest","addWaypoint","addWeapon","addWeaponCargo","addWeaponCargoGlobal","addWeaponGlobal","addWeaponItem","addWeaponPool","addWeaponTurret","addWeaponWithAttachmentsCargo","addWeaponWithAttachmentsCargoGlobal","admin","agent","agents","AGLToASL","aimedAtTarget","aimPos","airDensityCurveRTD","airDensityRTD","airplaneThrottle","airportSide","AISFinishHeal","alive","all3DENEntities","allActiveTitleEffects","allAddonsInfo","allAirports","allControls","allCurators","allCutLayers","allDead","allDeadMen","allDiaryRecords","allDiarySubjects","allDisplays","allEnv3DSoundSources","allGroups","allLODs","allMapMarkers","allMines","allMissionObjects","allObjects","allow3DMode","allowCrewInImmobile","allowCuratorLogicIgnoreAreas","allowDamage","allowDammage","allowedService","allowFileOperations","allowFleeing","allowGetIn","allowService","allowSprint","allPlayers","allSimpleObjects","allSitesLine truncated
|
||||
]*?"'`},{begin:`"[^\r
|
||||
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return Ml=n,Ml}var Ll,fp;function vv(){if(fp)return Ll;fp=1;function n(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return Ll=n,Ll}var kl,hp;function Cv(){if(hp)return kl;hp=1;const n=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],u=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],c=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clLine truncated
|
||||
"]*"`}]},{className:"built_in",variants:[{begin:"\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\()"}]},e.COMMENT("^[ ]*\\*.*$",!1),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}}return Ml=n,Ml}var Ll,fp;function vv(){if(fp)return Ll;fp=1;function n(e){return{name:"STEP Part 21",aliases:["p21","step","stp"],case_insensitive:!0,keywords:{$pattern:"[A-Z_][A-Z0-9_.]*",keyword:["HEADER","ENDSEC","DATA"]},contains:[{className:"meta",begin:"ISO-10303-21;",relevance:10},{className:"meta",begin:"END-ISO-10303-21;",relevance:10},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.COMMENT("/\\*\\*!","\\*/"),e.C_NUMBER_MODE,e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null}),{className:"string",begin:"'",end:"'"},{className:"symbol",variants:[{begin:"#",end:"\\d+",illegal:"\\W"}]}]}}return Ll=n,Ll}var kl,hp;function Cv(){if(hp)return kl;hp=1;const n=l=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:l.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[l.APOS_STRING_MODE,l.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:l.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),e=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],r=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],o=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],u=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],c=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clLine truncated
|
||||
(multipart)?`,end:`\\]
|
||||
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return Pl=n,Pl}var Bl,Tp;function Nv(){if(Tp)return Bl;Tp=1;function n(W){return W?typeof W=="string"?W:W.source:null}function e(W){return r("(?=",W,")")}function r(...W){return W.map(ee=>n(ee)).join("")}function o(W){const ie=W[W.length-1];return typeof ie=="object"&&ie.constructor===Object?(W.splice(W.length-1,1),ie):{}}function u(...W){return"("+(o(W).capture?"":"?:")+W.map(X=>n(X)).join("|")+")"}const c=W=>r(/\b/,W,/\w$/.test(W)?/\b/:/\B/),_=["Protocol","Type"].map(c),l=["init","self"].map(c),d=["Any","Self"],p=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],S=["false","nil","true"],T=["assignment","associativity","higherThan","left","lowerThan","none","right"],v=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],R=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],O=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),w=u(O,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),L=r(O,w,"*"),I=u(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),G=u(I,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),k=r(I,G,"*"),F=r(/[A-Z]/,G,"*"),z=["autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,k,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],U=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Z(W){const ie={match:/\s+/,relevance:0},ee=W.COMMENT("/\\*","\\*/",{contains:["self"]}),X=[W.C_LINE_COMMENT_MODE,ee],Se={match:[/\./,u(..._,...l)],className:{2:"keyword"}},Te={match:r(/\./,u(...p)),relevance:0},$=p.filter(Ue=>typeof Ue=="string").concat(["_|0"]),ue=p.filter(Ue=>typeof Ue!="string").concat(d).map(c),pe={variants:[{className:"keyword",match:u(...ue,...l)}]},Q={$pattern:u(/\b\w+/,/#\w+/),keyword:$.concat(v),literal:S},se=[Se,Te,pe],be={match:r(/\./,u(...R)),relevance:0},Re={className:"built_in",match:r(/\b/,u(...R),/(?=\()/)},ne=[be,Re],ze={match:/->/,relevance:0},je={className:"operator",relevance:0,variants:[{match:L},{match:`\\.(\\.|${w})+`}]},Ke=[ze,je],De="([0-9]_*)+",Ie="([0-9a-fA-F]_*)+",Fe={clLine truncated
|
||||
`},{className:"string",begin:"\\d{4}-\\d{2}-\\d{2}(\\s+)\\d{2}:\\d{2}:\\d{2}.\\d+Z"},{className:"string",begin:"(\\+|-)\\d+"},{className:"keyword",relevance:10,variants:[{begin:"^(test|testing|success|successful|failure|error|skip|xfail|uxsuccess)(:?)\\s+(test)?"},{begin:"^progress(:?)(\\s+)?(pop|push)?"},{begin:"^tags:"},{begin:"^time:"}]}]}}return Pl=n,Pl}var Bl,Tp;function Nv(){if(Tp)return Bl;Tp=1;function n(W){return W?typeof W=="string"?W:W.source:null}function e(W){return r("(?=",W,")")}function r(...W){return W.map(ee=>n(ee)).join("")}function o(W){const ie=W[W.length-1];return typeof ie=="object"&&ie.constructor===Object?(W.splice(W.length-1,1),ie):{}}function u(...W){return"("+(o(W).capture?"":"?:")+W.map(Z=>n(Z)).join("|")+")"}const c=W=>r(/\b/,W,/\w$/.test(W)?/\b/:/\B/),_=["Protocol","Type"].map(c),l=["init","self"].map(c),d=["Any","Self"],p=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],S=["false","nil","true"],T=["assignment","associativity","higherThan","left","lowerThan","none","right"],C=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],R=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],O=u(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),w=u(O,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),L=r(O,w,"*"),I=u(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),F=u(I,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),k=r(I,F,"*"),q=r(/[A-Z]/,F,"*"),G=["autoclosure",r(/convention\(/,u("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",r(/objc\(/,k,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],U=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function Q(W){const ie={match:/\s+/,relevance:0},ee=W.COMMENT("/\\*","\\*/",{contains:["self"]}),Z=[W.C_LINE_COMMENT_MODE,ee],Se={match:[/\./,u(..._,...l)],className:{2:"keyword"}},Te={match:r(/\./,u(...p)),relevance:0},$=p.filter(Ue=>typeof Ue=="string").concat(["_|0"]),ue=p.filter(Ue=>typeof Ue!="string").concat(d).map(c),pe={variants:[{className:"keyword",match:u(...ue,...l)}]},X={$pattern:u(/\b\w+/,/#\w+/),keyword:$.concat(C),literal:S},se=[Se,Te,pe],be={match:r(/\./,u(...R)),relevance:0},Ne={className:"built_in",match:r(/\b/,u(...R),/(?=\()/)},ne=[be,Ne],ze={match:/->/,relevance:0},et={className:"operator",relevance:0,variants:[{match:L},{match:`\\.(\\.|${w})+`}]},Ke=[ze,et],De="([0-9]_*)+",Ie="([0-9a-fA-F]_*)+",Fe={clLine truncated
|
||||
`,A7="∄",y7="∄",O7="𝔑",I7="𝔫",D7="≧̸",x7="≱",w7="≱",M7="≧̸",L7="⩾̸",k7="⩾̸",P7="⋙̸",B7="≵",F7="≫⃒",U7="≯",G7="≯",q7="≫̸",Y7="↮",z7="⇎",H7="⫲",V7="∋",$7="⋼",W7="⋺",K7="∋",Q7="Њ",X7="њ",Z7="↚",J7="⇍",j7="‥",e8="≦̸",t8="≰",r8="↚",n8="⇍",a8="↮",i8="⇎",o8="≰",s8="≦̸",l8="⩽̸",c8="⩽̸",u8="≮",d8="⋘̸",_8="≴",m8="≪⃒",p8="≮",g8="⋪",E8="⋬",S8="≪̸",f8="∤",h8="",b8=" ",T8="𝕟",v8="ℕ",C8="⫬",R8="¬",N8="≢",A8="≭",y8="∦",O8="∉",I8="≠",D8="≂̸",x8="∄",w8="≯",M8="≱",L8="≧̸",k8="≫̸",P8="≹",B8="⩾̸",F8="≵",U8="≎̸",G8="≏̸",q8="∉",Y8="⋵̸",z8="⋹̸",H8="∉",V8="⋷",$8="⋶",W8="⧏̸",K8="⋪",Q8="⋬",X8="≮",Z8="≰",J8="≸",j8="≪̸",eB="⩽̸",tB="≴",rB="⪢̸",nB="⪡̸",aB="∌",iB="∌",oB="⋾",sB="⋽",lB="⊀",cB="⪯̸",uB="⋠",dB="∌",_B="⧐̸",mB="⋫",pB="⋭",gB="⊏̸",EB="⋢",SB="⊐̸",fB="⋣",hB="⊂⃒",bB="⊈",TB="⊁",vB="⪰̸",CB="⋡",RB="≿̸",NB="⊃⃒",AB="⊉",yB="≁",OB="≄",IB="≇",DB="≉",xB="∤",wB="∦",MB="∦",LB="⫽⃥",kB="∂̸",PB="⨔",BB="⊀",FB="⋠",UB="⊀",GB="⪯̸",qB="⪯̸",YB="⤳̸",zB="↛",HB="⇏",VB="↝̸",$B="↛",WB="⇏",KB="⋫",QB="⋭",XB="⊁",ZB="⋡",JB="⪰̸",jB="𝒩",eF="𝓃",tF="∤",rF="∦",nF="≁",aF="≄",iF="≄",oF="∤",sF="∦",lF="⋢",cF="⋣",uF="⊄",dF="⫅̸",_F="⊈",mF="⊂⃒",pF="⊈",gF="⫅̸",EF="⊁",SF="⪰̸",fF="⊅",hF="⫆̸",bF="⊉",TF="⊃⃒",vF="⊉",CF="⫆̸",RF="≹",NF="Ñ",AF="ñ",yF="≸",OF="⋪",IF="⋬",DF="⋫",xF="⋭",wF="Ν",MF="ν",LF="#",kF="№",PF=" ",BF="≍⃒",FF="⊬",UF="⊭",GF="⊮",qF="⊯",YF="≥⃒",zF=">⃒",HF="⤄",VF="⧞",$F="⤂",WF="≤⃒",KF="<⃒",QF="⊴⃒",XF="⤃",ZF="⊵⃒",JF="∼⃒",jF="⤣",e9="↖",t9="⇖",r9="↖",n9="⤧",a9="Ó",i9="ó",o9="⊛",s9="Ô",l9="ô",c9="⊚",u9="О",d9="о",_9="⊝",m9="Ő",p9="ő",g9="⨸",E9="⊙",S9="⦼",f9="Œ",h9="œ",b9="⦿",T9="𝔒",v9="𝔬",C9="˛",R9="Ò",N9="ò",A9="⧁",y9="⦵",O9="Ω",I9="∮",D9="↺",x9="⦾",w9="⦻",M9="‾",L9="⧀",k9="Ō",P9="ō",B9="Ω",F9="ω",U9="Ο",G9="ο",q9="⦶",Y9="⊖",z9="𝕆",H9="𝕠",V9="⦷",$9="“",W9="‘",K9="⦹",Q9="⊕",X9="↻",Z9="⩔",J9="∨",j9="⩝",eU="ℴ",tU="ℴ",rU="ª",nU="º",aU="⊶",iU="⩖",oU="⩗",sU="⩛",lU="Ⓢ",cU="𝒪",uU="ℴ",dU="Ø",_U="ø",mU="⊘",pU="Õ",gU="õ",EU="⨶",SU="⨷",fU="⊗",hU="Ö",bU="ö",TU="⌽",vU="‾",CU="⏞",RU="⎴",NU="⏜",AU="¶",yU="∥",OU="∥",IU="⫳",DU="⫽",xU="∂",wU="∂",MU="П",LU="п",kU="%",PU=".",BU="‰",FU="⊥",UU="‱",GU="𝔓",qU="𝔭",YU="Φ",zU="φ",HU="ϕ",VU="ℳ",$U="☎",WU="Π",KU="π",QU="⋔",XU="ϖ",ZU="ℏ",JU="ℎ",jU="ℏ",eG="⨣",tG="⊞",rG="⨢",nG="+",aG="∔",iG="⨥",oG="⩲",sG="±",lG="±",cG="⨦",uG="⨧",dG="±",_G="ℌ",mG="⨕",pG="𝕡",gG="ℙ",EG="£",SG="⪷",fG="⪻",hG="≺",bG="≼",TG="⪷",vG="≺",CG="≼",RG="≺",NG="⪯",AG="≼",yG="≾",OG="⪯",IG="⪹",DG="⪵",xG="⋨",wG="⪯",MG="⪳",LG="≾",kG="′",PG="″",BG="ℙ",FG="⪹",UG="⪵",GG="⋨",qG="∏",YG="∏",zG="⌮",HG="⌒",VG="⌓",$G="∝",WG="∝",KG="∷",QG="∝",XG="≾",ZG="⊰",JG="𝒫",jG="𝓅",eq="Ψ",tq="ψ",rq=" ",nq="𝔔",aq="𝔮",iq="⨌",oq="𝕢",sq="ℚ",lq="⁗",cq="𝒬",uq="𝓆",dq="ℍ",_q="⨖",mq="?",pq="≟",gq='"',Eq='"',Sq="⇛",fq="∽̱",hq="Ŕ",bq="ŕ",Tq="√",vq="⦳",Cq="⟩",Rq="⟫",Nq="⦒",Aq="⦥",yq="⟩",Oq="»",Iq="⥵",Dq="⇥",xq="⤠",wq="⤳",Mq="→",Lq="↠",kq="⇒",Pq="⤞",Bq="↪",Fq="↬",Uq="⥅",Gq="⥴",qq="⤖",Yq="↣",zq="↝",Hq="⤚",Vq="⤜",$q="∶",Wq="ℚ",Kq="⤍",Qq="⤏",Xq="⤐",Zq="❳",Jq="}",jq="]",eY="⦌",tY="⦎",rY="⦐",nY="Ř",aY="ř",iY="Ŗ",oY="ŗ",sY="⌉",lY="}",cY="Р",uY="р",dY="⤷",_Y="⥩",mY="”",pY="”",gY="↳",EY="ℜ",SY="ℛ",fY="ℜ",hY="ℝ",bY="ℜ",TY="▭",vY="®",CY="®",RY="∋",NY="⇋",AY="⥯",yY="⥽",OY="⌋",IY="𝔯",DY="ℜ",xY="⥤",wY="⇁",MY="⇀",LY="⥬",kY="Ρ",PY="ρ",BY="ϱ",FY="⟩",UY="⇥",GY="→",qY="→",YY="⇒",zY="⇄",HY="↣",VY="⌉",$Y="⟧",WY="⥝",KY="⥕",QY="⇂",XY="⌋",ZY="⇁",JY="⇀",jY="⇄",ez="⇌",tz="⇉",rz="↝",nz="↦",az="⊢",iz="⥛",oz="⋌",sz="⧐",lz="⊳",cz="⊵",uz="⥏",dz="⥜",_z="⥔",mz="↾",pz="⥓",gz="⇀",Ez="˚",Sz="≓",fz="⇄",hz="⇌",bz="",Tz="⎱",vz="⎱",Cz="⫮",Rz="⟭",Nz="⇾",Az="⟧",yz="⦆",Oz="𝕣",Iz="ℝ",Dz="⨮",xz="⨵",wz="⥰",Mz=")",Lz="⦔",kz="⨒",Pz="⇉",Bz="⇛",Fz="›",Uz="𝓇",Gz="ℛ",qz="↱",Yz="↱",zz="]",Hz="’",Vz="’",$z="⋌",Wz="⋊",Kz="▹",Qz="⊵",Xz="▸",Zz="⧎",Jz="⧴",jz="⥨",eH="℞",tH="Ś",rH="ś",nH="‚",aH="⪸",iH="Š",oH="š",sH="⪼",lH="≻",cH="≽",uH="⪰",dH="⪴",_H="Ş",mH="ş",pH="Ŝ",gH="ŝ",EH="⪺",SH="⪶",fH="⋩",hH="⨓",bH="≿",TH="С",vH="с",CH="⊡",RH="⋅",NH="⩦",AH="⤥",yH="↘",OH="⇘",IH="↘",DH="§",xH=";",wH="⤩",MH="∖",LH="∖",kH="✶",Line truncated
|
||||
`," "],Nj=["{","}","|","\\","^","`"].concat(Rj),Aj=["'"].concat(Nj),$p=["%","/","?",";","#"].concat(Aj),Wp=["/","?","#"],yj=255,Kp=/^[+a-z0-9A-Z_-]{0,63}$/,Oj=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Qp={javascript:!0,"javascript:":!0},Xp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ij(n,e){if(n&&n instanceof Sa)return n;var r=new Sa;return r.parse(n,e),r}Sa.prototype.parse=function(n,e){var r,o,u,c,_,l=n;if(l=l.trim(),!e&&n.split("#").length===1){var d=Cj.exec(l);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var p=Tj.exec(l);if(p&&(p=p[0],u=p.toLowerCase(),this.protocol=p,l=l.substr(p.length)),(e||p||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(_=l.substr(0,2)==="//",_&&!(p&&Qp[p])&&(l=l.substr(2),this.slashes=!0)),!Qp[p]&&(_||p&&!Xp[p])){var S=-1;for(r=0;r<Wp.length;r++)c=l.indexOf(Wp[r]),c!==-1&&(S===-1||c<S)&&(S=c);var T,v;for(S===-1?v=l.lastIndexOf("@"):v=l.lastIndexOf("@",S),v!==-1&&(T=l.slice(0,v),l=l.slice(v+1),this.auth=T),S=-1,r=0;r<$p.length;r++)c=l.indexOf($p[r]),c!==-1&&(S===-1||c<S)&&(S=c);S===-1&&(S=l.length),l[S-1]===":"&&S--;var R=l.slice(0,S);l=l.slice(S),this.parseHost(R),this.hostname=this.hostname||"";var O=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!O){var w=this.hostname.split(/\./);for(r=0,o=w.length;r<o;r++){var L=w[r];if(L&&!L.match(Kp)){for(var I="",G=0,k=L.length;G<k;G++)L.charCodeAt(G)>127?I+="x":I+=L[G];if(!I.match(Kp)){var F=w.slice(0,r),z=w.slice(r+1),U=L.match(Oj);U&&(F.push(U[1]),z.unshift(U[2])),z.length&&(l=z.join(".")+l),this.hostname=F.join(".");break}}}}this.hostname.length>yj&&(this.hostname=""),O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var Z=l.indexOf("#");Z!==-1&&(this.hash=l.substr(Z),l=l.slice(0,Z));var W=l.indexOf("?");return W!==-1&&(this.search=l.substr(W),l=l.slice(0,W)),l&&(this.pathname=l),Xp[u]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Sa.prototype.parseHost=function(n){var e=vj.exec(n);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(this.hostname=n)};var Dj=Ij;an.encode=Sj;an.decode=hj;an.format=bj;an.parse=Dj;var Ir={},ic,Zp;function _g(){return Zp||(Zp=1,ic=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ic}var oc,Jp;function mg(){return Jp||(Jp=1,oc=/[\0-\x1F\x7F-\x9F]/),oc}var sc,jp;function xj(){return jp||(jp=1,sc=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),sc}var lc,e0;function pg(){return e0||(e0=1,lc=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),lc}var t0;function wj(){return t0||(t0=1,Ir.Any=_g(),Ir.Cc=mg(),Ir.Cf=xj(),Ir.P=Oc,Ir.Z=pg()),Ir}(function(n){function e($){return Object.prototype.toString.call($)}function r($){return e($)==="[object String]"}var o=Object.prototype.hasOwnProperty;function u($,ue){return o.call($,ue)}function c($){var ue=Array.prototype.slice.call(arguments,1);return ue.forEach(function(pe){if(pe){if(typeof pe!="object")throw new TypeError(pe+"must be object");Object.keys(pe).forEach(function(Q){$[Q]=pe[Q]})}}),$}function _($,ue,pe){return[].concat($.slice(0,ue),pe,$.slice(ue+1))}function l($){return!($>=55296&&$<=57343||$>=64976&&$<=65007||($&65535)===65535||($&65535)===65534||$>=0&&$<=8||$===11||$>=14&&$<=31||$>=127&&$<=159||$>1114111)}function d($){if($>65535){$-=65536;var ue=55296+($>>10),pe=56320+($&1023);return String.fromCharCode(ue,pe)}return String.fromCharCode($)}var p=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,S=/&([a-z#][a-z0-9]{1,31});/gi,T=new RegExp(p.source+"|"+S.source,"gi"),v=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,R=dg;function O($,ue){var pe=0;return u(R,ue)?R[ue]:ue.charCodeAt(0)===35&&v.test(ue)&&(pe=ue[1].toLowerCase()==="x"?parseInt(ue.slice(2),16):parseInt(ue.slice(1),10),l(pe))?d(pe):$}function w($){return $.indexOf("\\")<0?$:$.replace(p,"$1")}function L($){return $.indexOf("\\")<0&&$.indexOf("&")<0?$:$.replace(T,function(ue,pe,Q){return pe||O(ue,Q)})}var I=/[&<>"]/,G=/[&<>"]/g,k={"&":"&","<":"<",">":">",'"':"""};function F($){return k[$]}function z($){return I.test($)?$.replace(G,F):$}var U=/[.?*+^$[\]\\(){}|-]/g;function Z($){return $.replace(U,"\\$&")}function W($){switch($){case 9:case 32:return!0}return!1}function ie($){if($>=8192&&$<=8202)return!0;switch($){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var ee=Oc;function X($){return ee.test($)}function Se($){switch($){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Te($){return $=$.trim().reLine truncated
|
||||
`};ar.fence=function(n,e,r,o,u){var c=n[e],_=c.info?Fj(c.info).trim():"",l="",d="",p,S,T,v,R;return _&&(T=_.split(/(\s+)/g),l=T[0],d=T.slice(2).join("")),r.highlight?p=r.highlight(c.content,l,d)||Mr(c.content):p=Mr(c.content),p.indexOf("<pre")===0?p+`
|
||||
`:_?(S=c.attrIndex("class"),v=c.attrs?c.attrs.slice():[],S<0?v.push(["class",r.langPrefix+l]):(v[S]=v[S].slice(),v[S][1]+=" "+r.langPrefix+l),R={attrs:v},"<pre><code"+u.renderAttrs(R)+">"+p+`</code></pre>
|
||||
`," "],Nj=["{","}","|","\\","^","`"].concat(Rj),Aj=["'"].concat(Nj),$p=["%","/","?",";","#"].concat(Aj),Wp=["/","?","#"],yj=255,Kp=/^[+a-z0-9A-Z_-]{0,63}$/,Oj=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Qp={javascript:!0,"javascript:":!0},Xp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ij(n,e){if(n&&n instanceof Sa)return n;var r=new Sa;return r.parse(n,e),r}Sa.prototype.parse=function(n,e){var r,o,u,c,_,l=n;if(l=l.trim(),!e&&n.split("#").length===1){var d=Cj.exec(l);if(d)return this.pathname=d[1],d[2]&&(this.search=d[2]),this}var p=Tj.exec(l);if(p&&(p=p[0],u=p.toLowerCase(),this.protocol=p,l=l.substr(p.length)),(e||p||l.match(/^\/\/[^@\/]+@[^@\/]+/))&&(_=l.substr(0,2)==="//",_&&!(p&&Qp[p])&&(l=l.substr(2),this.slashes=!0)),!Qp[p]&&(_||p&&!Xp[p])){var S=-1;for(r=0;r<Wp.length;r++)c=l.indexOf(Wp[r]),c!==-1&&(S===-1||c<S)&&(S=c);var T,C;for(S===-1?C=l.lastIndexOf("@"):C=l.lastIndexOf("@",S),C!==-1&&(T=l.slice(0,C),l=l.slice(C+1),this.auth=T),S=-1,r=0;r<$p.length;r++)c=l.indexOf($p[r]),c!==-1&&(S===-1||c<S)&&(S=c);S===-1&&(S=l.length),l[S-1]===":"&&S--;var R=l.slice(0,S);l=l.slice(S),this.parseHost(R),this.hostname=this.hostname||"";var O=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!O){var w=this.hostname.split(/\./);for(r=0,o=w.length;r<o;r++){var L=w[r];if(L&&!L.match(Kp)){for(var I="",F=0,k=L.length;F<k;F++)L.charCodeAt(F)>127?I+="x":I+=L[F];if(!I.match(Kp)){var q=w.slice(0,r),G=w.slice(r+1),U=L.match(Oj);U&&(q.push(U[1]),G.unshift(U[2])),G.length&&(l=G.join(".")+l),this.hostname=q.join(".");break}}}}this.hostname.length>yj&&(this.hostname=""),O&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var Q=l.indexOf("#");Q!==-1&&(this.hash=l.substr(Q),l=l.slice(0,Q));var W=l.indexOf("?");return W!==-1&&(this.search=l.substr(W),l=l.slice(0,W)),l&&(this.pathname=l),Xp[u]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Sa.prototype.parseHost=function(n){var e=vj.exec(n);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),n=n.substr(0,n.length-e.length)),n&&(this.hostname=n)};var Dj=Ij;an.encode=Sj;an.decode=hj;an.format=bj;an.parse=Dj;var Ir={},ic,Zp;function _g(){return Zp||(Zp=1,ic=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),ic}var oc,Jp;function mg(){return Jp||(Jp=1,oc=/[\0-\x1F\x7F-\x9F]/),oc}var sc,jp;function xj(){return jp||(jp=1,sc=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),sc}var lc,e0;function pg(){return e0||(e0=1,lc=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),lc}var t0;function wj(){return t0||(t0=1,Ir.Any=_g(),Ir.Cc=mg(),Ir.Cf=xj(),Ir.P=Oc,Ir.Z=pg()),Ir}(function(n){function e($){return Object.prototype.toString.call($)}function r($){return e($)==="[object String]"}var o=Object.prototype.hasOwnProperty;function u($,ue){return o.call($,ue)}function c($){var ue=Array.prototype.slice.call(arguments,1);return ue.forEach(function(pe){if(pe){if(typeof pe!="object")throw new TypeError(pe+"must be object");Object.keys(pe).forEach(function(X){$[X]=pe[X]})}}),$}function _($,ue,pe){return[].concat($.slice(0,ue),pe,$.slice(ue+1))}function l($){return!($>=55296&&$<=57343||$>=64976&&$<=65007||($&65535)===65535||($&65535)===65534||$>=0&&$<=8||$===11||$>=14&&$<=31||$>=127&&$<=159||$>1114111)}function d($){if($>65535){$-=65536;var ue=55296+($>>10),pe=56320+($&1023);return String.fromCharCode(ue,pe)}return String.fromCharCode($)}var p=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,S=/&([a-z#][a-z0-9]{1,31});/gi,T=new RegExp(p.source+"|"+S.source,"gi"),C=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,R=dg;function O($,ue){var pe=0;return u(R,ue)?R[ue]:ue.charCodeAt(0)===35&&C.test(ue)&&(pe=ue[1].toLowerCase()==="x"?parseInt(ue.slice(2),16):parseInt(ue.slice(1),10),l(pe))?d(pe):$}function w($){return $.indexOf("\\")<0?$:$.replace(p,"$1")}function L($){return $.indexOf("\\")<0&&$.indexOf("&")<0?$:$.replace(T,function(ue,pe,X){return pe||O(ue,X)})}var I=/[&<>"]/,F=/[&<>"]/g,k={"&":"&","<":"<",">":">",'"':"""};function q($){return k[$]}function G($){return I.test($)?$.replace(F,q):$}var U=/[.?*+^$[\]\\(){}|-]/g;function Q($){return $.replace(U,"\\$&")}function W($){switch($){case 9:case 32:return!0}return!1}function ie($){if($>=8192&&$<=8202)return!0;switch($){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var ee=Oc;function Z($){return ee.test($)}function Se($){switch($){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Te($){return $=$.trim().reLine truncated
|
||||
`};ar.fence=function(n,e,r,o,u){var c=n[e],_=c.info?Fj(c.info).trim():"",l="",d="",p,S,T,C,R;return _&&(T=_.split(/(\s+)/g),l=T[0],d=T.slice(2).join("")),r.highlight?p=r.highlight(c.content,l,d)||Mr(c.content):p=Mr(c.content),p.indexOf("<pre")===0?p+`
|
||||
`:_?(S=c.attrIndex("class"),C=c.attrs?c.attrs.slice():[],S<0?C.push(["class",r.langPrefix+l]):(C[S]=C[S].slice(),C[S][1]+=" "+r.langPrefix+l),R={attrs:C},"<pre><code"+u.renderAttrs(R)+">"+p+`</code></pre>
|
||||
`):"<pre><code"+u.renderAttrs(c)+">"+p+`</code></pre>
|
||||
`};ar.image=function(n,e,r,o,u){var c=n[e];return c.attrs[c.attrIndex("alt")][1]=u.renderInlineAsText(c.children,r,o),u.renderToken(n,e,r)};ar.hardbreak=function(n,e,r){return r.xhtmlOut?`<br />
|
||||
`:`<br>
|
||||
@@ -26,8 +26,8 @@ https://github.com/highlightjs/highlight.js/issues/2277`),ne=Q,Re=se),be===void
|
||||
`),c+=(l.nesting===-1?"</":"<")+l.tag,c+=this.renderAttrs(l),l.nesting===0&&o.xhtmlOut&&(c+=" /"),l.block&&(_=!0,l.nesting===1&&r+1<e.length&&(u=e[r+1],(u.type==="inline"||u.hidden||u.nesting===-1&&u.tag===l.tag)&&(_=!1))),c+=_?`>
|
||||
`:">",c)};on.prototype.renderInline=function(n,e,r){for(var o,u="",c=this.rules,_=0,l=n.length;_<l;_++)o=n[_].type,typeof c[o]<"u"?u+=c[o](n,_,e,r,this):u+=this.renderToken(n,_,e);return u};on.prototype.renderInlineAsText=function(n,e,r){for(var o="",u=0,c=n.length;u<c;u++)n[u].type==="text"?o+=n[u].content:n[u].type==="image"?o+=this.renderInlineAsText(n[u].children,e,r):n[u].type==="softbreak"&&(o+=`
|
||||
`);return o};on.prototype.render=function(n,e,r){var o,u,c,_="",l=this.rules;for(o=0,u=n.length;o<u;o++)c=n[o].type,c==="inline"?_+=this.renderInline(n[o].children,e,r):typeof l[c]<"u"?_+=l[n[o].type](n,o,e,r,this):_+=this.renderToken(n,o,e,r);return _};var Uj=on;function Wt(){this.__rules__=[],this.__cache__=null}Wt.prototype.__find__=function(n){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===n)return e;return-1};Wt.prototype.__compile__=function(){var n=this,e=[""];n.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(o){e.indexOf(o)<0&&e.push(o)})}),n.__cache__={},e.forEach(function(r){n.__cache__[r]=[],n.__rules__.forEach(function(o){o.enabled&&(r&&o.alt.indexOf(r)<0||n.__cache__[r].push(o.fn))})})};Wt.prototype.at=function(n,e,r){var o=this.__find__(n),u=r||{};if(o===-1)throw new Error("Parser rule not found: "+n);this.__rules__[o].fn=e,this.__rules__[o].alt=u.alt||[],this.__cache__=null};Wt.prototype.before=function(n,e,r,o){var u=this.__find__(n),c=o||{};if(u===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(u,0,{name:e,enabled:!0,fn:r,alt:c.alt||[]}),this.__cache__=null};Wt.prototype.after=function(n,e,r,o){var u=this.__find__(n),c=o||{};if(u===-1)throw new Error("Parser rule not found: "+n);this.__rules__.splice(u+1,0,{name:e,enabled:!0,fn:r,alt:c.alt||[]}),this.__cache__=null};Wt.prototype.push=function(n,e,r){var o=r||{};this.__rules__.push({name:n,enabled:!0,fn:e,alt:o.alt||[]}),this.__cache__=null};Wt.prototype.enable=function(n,e){Array.isArray(n)||(n=[n]);var r=[];return n.forEach(function(o){var u=this.__find__(o);if(u<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[u].enabled=!0,r.push(o)},this),this.__cache__=null,r};Wt.prototype.enableOnly=function(n,e){Array.isArray(n)||(n=[n]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(n,e)};Wt.prototype.disable=function(n,e){Array.isArray(n)||(n=[n]);var r=[];return n.forEach(function(o){var u=this.__find__(o);if(u<0){if(e)return;throw new Error("Rules manager: invalid rule name "+o)}this.__rules__[u].enabled=!1,r.push(o)},this),this.__cache__=null,r};Wt.prototype.getRules=function(n){return this.__cache__===null&&this.__compile__(),this.__cache__[n]||[]};var Ic=Wt,Gj=/\r\n?|\n/g,qj=/\0/g,Yj=function(e){var r;r=e.src.replace(Gj,`
|
||||
`),r=r.replace(qj,"�"),e.src=r},zj=function(e){var r;e.inlineMode?(r=new e.Token("inline","",0),r.content=e.src,r.map=[0,1],r.children=[],e.tokens.push(r)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Hj=function(e){var r=e.tokens,o,u,c;for(u=0,c=r.length;u<c;u++)o=r[u],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},Vj=Be.arrayReplaceAt;function $j(n){return/^<a[>\s]/i.test(n)}function Wj(n){return/^<\/a\s*>/i.test(n)}var Kj=function(e){var r,o,u,c,_,l,d,p,S,T,v,R,O,w,L,I,G=e.tokens,k;if(e.md.options.linkify){for(o=0,u=G.length;o<u;o++)if(!(G[o].type!=="inline"||!e.md.linkify.pretest(G[o].content)))for(c=G[o].children,O=0,r=c.length-1;r>=0;r--){if(l=c[r],l.type==="link_close"){for(r--;c[r].level!==l.level&&c[r].type!=="link_open";)r--;continue}if(l.type==="html_inline"&&($j(l.content)&&O>0&&O--,Wj(l.content)&&O++),!(O>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(S=l.content,k=e.md.linkify.match(S),d=[],R=l.level,v=0,k.length>0&&k[0].index===0&&r>0&&c[r-1].type==="text_special"&&(k=k.slice(1)),p=0;p<k.length;p++)w=k[p].url,L=e.md.normalizeLink(w),e.md.validateLink(L)&&(I=k[p].text,k[p].schema?k[p].schema==="mailto:"&&!/^mailto:/i.test(I)?I=e.md.normalizeLinkText("mailto:"+I).replace(/^mailto:/,""):I=e.md.normalizeLinkText(I):I=e.md.normalizeLinkText("http://"+I).replace(/^http:\/\//,""),T=k[p].index,T>v&&(_=new e.Token("text","",0),_.content=S.slice(v,T),_.level=R,d.push(_)),_=new e.Token("link_open","a",1),_.attrs=[["href",L]],_.level=R++,_.markup="linkify",_.info="auto",d.push(_),_=new e.Token("text","",0),_.content=I,_.level=R,d.push(_),_=new e.Token("link_close","a",-1),_.level=--R,_.markup="linkify",_.info="auto",d.push(_),v=k[p].lastIndex);v<S.length&&(_=new e.Token("text","",0),_.content=S.slice(v),_.level=R,d.push(_)),G[o].children=c=Vj(c,r,d)}}}},gg=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Qj=/\((c|tm|r)\)/i,Xj=/\((c|tm|r)\)/ig,Zj={c:"©",r:"®",tm:"™"};function Jj(n,e){return Zj[e.toLowerCase()]}function jj(n){var e,r,o=0;for(e=n.length-1;e>=0;e--)r=n[e],r.type==="text"&&!o&&(r.content=r.content.replace(Xj,Jj)),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}function eee(n){var e,r,o=0;for(e=n.length-1;e>=0;e--)r=n[e],r.type==="text"&&!o&&gg.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}var tee=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type==="inline"&&(Qj.test(e.tokens[r].content)&&jj(e.tokens[r].children),gg.test(e.tokens[r].content)&&eee(e.tokens[r].children))},n0=Be.isWhiteSpace,a0=Be.isPunctChar,i0=Be.isMdAsciiPunct,ree=/['"]/,o0=/['"]/g,s0="’";function ua(n,e,r){return n.slice(0,e)+r+n.slice(e+1)}function nee(n,e){var r,o,u,c,_,l,d,p,S,T,v,R,O,w,L,I,G,k,F,z,U;for(F=[],r=0;r<n.length;r++){for(o=n[r],d=n[r].level,G=F.length-1;G>=0&&!(F[G].level<=d);G--);if(F.length=G+1,o.type==="text"){u=o.content,_=0,l=u.length;e:for(;_<l&&(o0.lastIndex=_,c=o0.exec(u),!!c);){if(L=I=!0,_=c.index+1,k=c[0]==="'",S=32,c.index-1>=0)S=u.charCodeAt(c.index-1);else for(G=r-1;G>=0&&!(n[G].type==="softbreak"||n[G].type==="hardbreak");G--)if(n[G].content){S=n[G].content.charCodeAt(n[G].content.length-1);break}if(T=32,_<l)T=u.charCodeAt(_);else for(G=r+1;G<n.length&&!(n[G].type==="softbreak"||n[G].type==="hardbreak");G++)if(n[G].content){T=n[G].content.charCodeAt(0);break}if(v=i0(S)||a0(String.fromCharCode(S)),R=i0(T)||a0(String.fromCharCode(T)),O=n0(S),w=n0(T),w?L=!1:R&&(O||v||(L=!1)),O?I=!1:v&&(w||R||(I=!1)),T===34&&c[0]==='"'&&S>=48&&S<=57&&(I=L=!1),L&&I&&(L=v,I=R),!L&&!I){k&&(o.content=ua(o.content,c.index,s0));continue}if(I){for(G=F.length-1;G>=0&&(p=F[G],!(F[G].level<d));G--)if(p.single===k&&F[G].level===d){p=F[G],k?(z=e.md.options.quotes[2],U=e.md.options.quotes[3]):(z=e.md.options.quotes[0],U=e.md.options.quotes[1]),o.content=ua(o.content,c.index,U),n[p.token].content=ua(n[p.token].content,p.pos,z),_+=U.length-1,p.token===r&&(_+=z.length-1),u=o.content,l=u.length,F.length=G;continue e}}L?F.push({token:r,pos:c.index,single:k,level:d}):I&&k&&(o.content=ua(o.content,c.index,s0))}}}}var aee=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type!=="inline"||!ree.test(e.tokens[r].content)||nee(e.tokens[r].children,e)},iee=function(e){var r,o,u,c,_,l,d=e.tokens;for(r=0,o=d.length;r<o;r++)if(d[r].type==="inline"){for(u=d[r].children,_=u.length,c=0;c<_;c++)u[c].type==="text_special"&&(u[c].type="text");for(c=l=0;c<_;c++)u[c].type==="text"&&c+1<_&&u[c+1].type==="text"?u[c+1].content=u[c].content+u[c+1].content:(c!==l&&(u[l]=u[c]),l++);c!==l&&(u.length=l)}};function sn(n,e,r){this.type=n,this.tag=e,this.attrs=null,this.map=null,this.nestiLine truncated
|
||||
`,_.map=[r,e.line],!0},_ee=function(e,r,o,u){var c,_,l,d,p,S,T,v=!1,R=e.bMarks[r]+e.tShift[r],O=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||R+3>O||(c=e.src.charCodeAt(R),c!==126&&c!==96)||(p=R,R=e.skipChars(R,c),_=R-p,_<3)||(T=e.src.slice(p,R),l=e.src.slice(R,O),c===96&&l.indexOf(String.fromCharCode(c))>=0))return!1;if(u)return!0;for(d=r;d++,!(d>=o||(R=p=e.bMarks[d]+e.tShift[d],O=e.eMarks[d],R<O&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(R)===c&&!(e.sCount[d]-e.blkIndent>=4)&&(R=e.skipChars(R,c),!(R-p<_)&&(R=e.skipSpaces(R),!(R<O)))){v=!0;break}return _=e.sCount[r],e.line=d+(v?1:0),S=e.push("fence","code",0),S.info=l,S.content=e.getLines(r+1,d,_,!0),S.markup=T,S.map=[r,e.line],!0},c0=Be.isSpace,mee=function(e,r,o,u){var c,_,l,d,p,S,T,v,R,O,w,L,I,G,k,F,z,U,Z,W,ie=e.lineMax,ee=e.bMarks[r]+e.tShift[r],X=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(ee++)!==62)return!1;if(u)return!0;for(d=R=e.sCount[r]+1,e.src.charCodeAt(ee)===32?(ee++,d++,R++,c=!1,F=!0):e.src.charCodeAt(ee)===9?(F=!0,(e.bsCount[r]+R)%4===3?(ee++,d++,R++,c=!1):c=!0):F=!1,O=[e.bMarks[r]],e.bMarks[r]=ee;ee<X&&(_=e.src.charCodeAt(ee),c0(_));){_===9?R+=4-(R+e.bsCount[r]+(c?1:0))%4:R++;ee++}for(w=[e.bsCount[r]],e.bsCount[r]=e.sCount[r]+1+(F?1:0),S=ee>=X,G=[e.sCount[r]],e.sCount[r]=R-d,k=[e.tShift[r]],e.tShift[r]=ee-e.bMarks[r],U=e.md.block.ruler.getRules("blockquote"),I=e.parentType,e.parentType="blockquote",v=r+1;v<o&&(W=e.sCount[v]<e.blkIndent,ee=e.bMarks[v]+e.tShift[v],X=e.eMarks[v],!(ee>=X));v++){if(e.src.charCodeAt(ee++)===62&&!W){for(d=R=e.sCount[v]+1,e.src.charCodeAt(ee)===32?(ee++,d++,R++,c=!1,F=!0):e.src.charCodeAt(ee)===9?(F=!0,(e.bsCount[v]+R)%4===3?(ee++,d++,R++,c=!1):c=!0):F=!1,O.push(e.bMarks[v]),e.bMarks[v]=ee;ee<X&&(_=e.src.charCodeAt(ee),c0(_));){_===9?R+=4-(R+e.bsCount[v]+(c?1:0))%4:R++;ee++}S=ee>=X,w.push(e.bsCount[v]),e.bsCount[v]=e.sCount[v]+1+(F?1:0),G.push(e.sCount[v]),e.sCount[v]=R-d,k.push(e.tShift[v]),e.tShift[v]=ee-e.bMarks[v];continue}if(S)break;for(z=!1,l=0,p=U.length;l<p;l++)if(U[l](e,v,o,!0)){z=!0;break}if(z){e.lineMax=v,e.blkIndent!==0&&(O.push(e.bMarks[v]),w.push(e.bsCount[v]),k.push(e.tShift[v]),G.push(e.sCount[v]),e.sCount[v]-=e.blkIndent);break}O.push(e.bMarks[v]),w.push(e.bsCount[v]),k.push(e.tShift[v]),G.push(e.sCount[v]),e.sCount[v]=-1}for(L=e.blkIndent,e.blkIndent=0,Z=e.push("blockquote_open","blockquote",1),Z.markup=">",Z.map=T=[r,0],e.md.block.tokenize(e,r,v),Z=e.push("blockquote_close","blockquote",-1),Z.markup=">",e.lineMax=ie,e.parentType=I,T[1]=e.line,l=0;l<k.length;l++)e.bMarks[l+r]=O[l],e.tShift[l+r]=k[l],e.sCount[l+r]=G[l],e.bsCount[l+r]=w[l];return e.blkIndent=L,!0},pee=Be.isSpace,gee=function(e,r,o,u){var c,_,l,d,p=e.bMarks[r]+e.tShift[r],S=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(c=e.src.charCodeAt(p++),c!==42&&c!==45&&c!==95))return!1;for(_=1;p<S;){if(l=e.src.charCodeAt(p++),l!==c&&!pee(l))return!1;l===c&&_++}return _<3?!1:(u||(e.line=r+1,d=e.push("hr","hr",0),d.map=[r,e.line],d.markup=Array(_+1).join(String.fromCharCode(c))),!0)},Sg=Be.isSpace;function u0(n,e){var r,o,u,c;return o=n.bMarks[e]+n.tShift[e],u=n.eMarks[e],r=n.src.charCodeAt(o++),r!==42&&r!==45&&r!==43||o<u&&(c=n.src.charCodeAt(o),!Sg(c))?-1:o}function d0(n,e){var r,o=n.bMarks[e]+n.tShift[e],u=o,c=n.eMarks[e];if(u+1>=c||(r=n.src.charCodeAt(u++),r<48||r>57))return-1;for(;;){if(u>=c)return-1;if(r=n.src.charCodeAt(u++),r>=48&&r<=57){if(u-o>=10)return-1;continue}if(r===41||r===46)break;return-1}return u<c&&(r=n.src.charCodeAt(u),!Sg(r))?-1:u}function Eee(n,e){var r,o,u=n.level+2;for(r=e+2,o=n.tokens.length-2;r<o;r++)n.tokens[r].level===u&&n.tokens[r].type==="paragraph_open"&&(n.tokens[r+2].hidden=!0,n.tokens[r].hidden=!0,r+=2)}var See=function(e,r,o,u){var c,_,l,d,p,S,T,v,R,O,w,L,I,G,k,F,z,U,Z,W,ie,ee,X,Se,Te,$,ue,pe,Q=!1,se=!0;if(e.sCount[r]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[r]-e.listIndent>=4&&e.sCount[r]<e.blkIndent)return!1;if(u&&e.parentType==="paragraph"&&e.sCount[r]>=e.blkIndent&&(Q=!0),(X=d0(e,r))>=0){if(T=!0,Te=e.bMarks[r]+e.tShift[r],I=Number(e.src.slice(Te,X-1)),Q&&I!==1)return!1}else if((X=u0(e,r))>=0)T=!1;else return!1;if(Q&&e.skipSpaces(X)>=e.eMarks[r])return!1;if(L=e.src.charCodeAt(X-1),u)return!0;for(w=e.tokens.length,T?(pe=e.push("ordered_list_open","ol",1),I!==1&&(pe.attrs=[["start",I]])):pe=e.push("bullet_list_open","ul",1),pe.map=O=[r,0],pe.markup=String.fromCharCode(L),k=r,Se=!1,ue=e.md.block.ruler.getRules("list"),U=e.parentType,e.parentType="list";k<o;){for(ee=X,G=e.eMarks[k],S=F=e.sCount[k]+X-(e.bMarks[r]+e.tShift[r]);ee<G;){if(c=e.src.charCodeAt(ee),c===9)F+=4-(F+e.bsCount[k])%4;else if(c===32)F++;else break;ee++}if(_=ee,_>=G?p=1:p=F-S,p>4&&(p=1),d=S+p,pe=e.push("list_item_open","li",1),pe.markup=String.fromCharCode(L),pe.map=v=[r,0],T&&(pe.info=e.src.slice(Te,X-1)),ie=e.tight,W=e.tShift[r],Z=e.sCount[r],z=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=d,e.tight=!0,e.tShift[r]=_-e.bMarks[r],e.sCount[r]=F,_>=G&&e.isEmpty(r+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,r,o,!0)Line truncated
|
||||
`),r=r.replace(qj,"�"),e.src=r},zj=function(e){var r;e.inlineMode?(r=new e.Token("inline","",0),r.content=e.src,r.map=[0,1],r.children=[],e.tokens.push(r)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},Hj=function(e){var r=e.tokens,o,u,c;for(u=0,c=r.length;u<c;u++)o=r[u],o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)},Vj=Be.arrayReplaceAt;function $j(n){return/^<a[>\s]/i.test(n)}function Wj(n){return/^<\/a\s*>/i.test(n)}var Kj=function(e){var r,o,u,c,_,l,d,p,S,T,C,R,O,w,L,I,F=e.tokens,k;if(e.md.options.linkify){for(o=0,u=F.length;o<u;o++)if(!(F[o].type!=="inline"||!e.md.linkify.pretest(F[o].content)))for(c=F[o].children,O=0,r=c.length-1;r>=0;r--){if(l=c[r],l.type==="link_close"){for(r--;c[r].level!==l.level&&c[r].type!=="link_open";)r--;continue}if(l.type==="html_inline"&&($j(l.content)&&O>0&&O--,Wj(l.content)&&O++),!(O>0)&&l.type==="text"&&e.md.linkify.test(l.content)){for(S=l.content,k=e.md.linkify.match(S),d=[],R=l.level,C=0,k.length>0&&k[0].index===0&&r>0&&c[r-1].type==="text_special"&&(k=k.slice(1)),p=0;p<k.length;p++)w=k[p].url,L=e.md.normalizeLink(w),e.md.validateLink(L)&&(I=k[p].text,k[p].schema?k[p].schema==="mailto:"&&!/^mailto:/i.test(I)?I=e.md.normalizeLinkText("mailto:"+I).replace(/^mailto:/,""):I=e.md.normalizeLinkText(I):I=e.md.normalizeLinkText("http://"+I).replace(/^http:\/\//,""),T=k[p].index,T>C&&(_=new e.Token("text","",0),_.content=S.slice(C,T),_.level=R,d.push(_)),_=new e.Token("link_open","a",1),_.attrs=[["href",L]],_.level=R++,_.markup="linkify",_.info="auto",d.push(_),_=new e.Token("text","",0),_.content=I,_.level=R,d.push(_),_=new e.Token("link_close","a",-1),_.level=--R,_.markup="linkify",_.info="auto",d.push(_),C=k[p].lastIndex);C<S.length&&(_=new e.Token("text","",0),_.content=S.slice(C),_.level=R,d.push(_)),F[o].children=c=Vj(c,r,d)}}}},gg=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Qj=/\((c|tm|r)\)/i,Xj=/\((c|tm|r)\)/ig,Zj={c:"©",r:"®",tm:"™"};function Jj(n,e){return Zj[e.toLowerCase()]}function jj(n){var e,r,o=0;for(e=n.length-1;e>=0;e--)r=n[e],r.type==="text"&&!o&&(r.content=r.content.replace(Xj,Jj)),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}function eee(n){var e,r,o=0;for(e=n.length-1;e>=0;e--)r=n[e],r.type==="text"&&!o&&gg.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&o--,r.type==="link_close"&&r.info==="auto"&&o++}var tee=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type==="inline"&&(Qj.test(e.tokens[r].content)&&jj(e.tokens[r].children),gg.test(e.tokens[r].content)&&eee(e.tokens[r].children))},n0=Be.isWhiteSpace,a0=Be.isPunctChar,i0=Be.isMdAsciiPunct,ree=/['"]/,o0=/['"]/g,s0="’";function ua(n,e,r){return n.slice(0,e)+r+n.slice(e+1)}function nee(n,e){var r,o,u,c,_,l,d,p,S,T,C,R,O,w,L,I,F,k,q,G,U;for(q=[],r=0;r<n.length;r++){for(o=n[r],d=n[r].level,F=q.length-1;F>=0&&!(q[F].level<=d);F--);if(q.length=F+1,o.type==="text"){u=o.content,_=0,l=u.length;e:for(;_<l&&(o0.lastIndex=_,c=o0.exec(u),!!c);){if(L=I=!0,_=c.index+1,k=c[0]==="'",S=32,c.index-1>=0)S=u.charCodeAt(c.index-1);else for(F=r-1;F>=0&&!(n[F].type==="softbreak"||n[F].type==="hardbreak");F--)if(n[F].content){S=n[F].content.charCodeAt(n[F].content.length-1);break}if(T=32,_<l)T=u.charCodeAt(_);else for(F=r+1;F<n.length&&!(n[F].type==="softbreak"||n[F].type==="hardbreak");F++)if(n[F].content){T=n[F].content.charCodeAt(0);break}if(C=i0(S)||a0(String.fromCharCode(S)),R=i0(T)||a0(String.fromCharCode(T)),O=n0(S),w=n0(T),w?L=!1:R&&(O||C||(L=!1)),O?I=!1:C&&(w||R||(I=!1)),T===34&&c[0]==='"'&&S>=48&&S<=57&&(I=L=!1),L&&I&&(L=C,I=R),!L&&!I){k&&(o.content=ua(o.content,c.index,s0));continue}if(I){for(F=q.length-1;F>=0&&(p=q[F],!(q[F].level<d));F--)if(p.single===k&&q[F].level===d){p=q[F],k?(G=e.md.options.quotes[2],U=e.md.options.quotes[3]):(G=e.md.options.quotes[0],U=e.md.options.quotes[1]),o.content=ua(o.content,c.index,U),n[p.token].content=ua(n[p.token].content,p.pos,G),_+=U.length-1,p.token===r&&(_+=G.length-1),u=o.content,l=u.length,q.length=F;continue e}}L?q.push({token:r,pos:c.index,single:k,level:d}):I&&k&&(o.content=ua(o.content,c.index,s0))}}}}var aee=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type!=="inline"||!ree.test(e.tokens[r].content)||nee(e.tokens[r].children,e)},iee=function(e){var r,o,u,c,_,l,d=e.tokens;for(r=0,o=d.length;r<o;r++)if(d[r].type==="inline"){for(u=d[r].children,_=u.length,c=0;c<_;c++)u[c].type==="text_special"&&(u[c].type="text");for(c=l=0;c<_;c++)u[c].type==="text"&&c+1<_&&u[c+1].type==="text"?u[c+1].content=u[c].content+u[c+1].content:(c!==l&&(u[l]=u[c]),l++);c!==l&&(u.length=l)}};function sn(n,e,r){this.type=n,this.tag=e,this.attrs=null,this.map=null,this.nestiLine truncated
|
||||
`,_.map=[r,e.line],!0},_ee=function(e,r,o,u){var c,_,l,d,p,S,T,C=!1,R=e.bMarks[r]+e.tShift[r],O=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||R+3>O||(c=e.src.charCodeAt(R),c!==126&&c!==96)||(p=R,R=e.skipChars(R,c),_=R-p,_<3)||(T=e.src.slice(p,R),l=e.src.slice(R,O),c===96&&l.indexOf(String.fromCharCode(c))>=0))return!1;if(u)return!0;for(d=r;d++,!(d>=o||(R=p=e.bMarks[d]+e.tShift[d],O=e.eMarks[d],R<O&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(R)===c&&!(e.sCount[d]-e.blkIndent>=4)&&(R=e.skipChars(R,c),!(R-p<_)&&(R=e.skipSpaces(R),!(R<O)))){C=!0;break}return _=e.sCount[r],e.line=d+(C?1:0),S=e.push("fence","code",0),S.info=l,S.content=e.getLines(r+1,d,_,!0),S.markup=T,S.map=[r,e.line],!0},c0=Be.isSpace,mee=function(e,r,o,u){var c,_,l,d,p,S,T,C,R,O,w,L,I,F,k,q,G,U,Q,W,ie=e.lineMax,ee=e.bMarks[r]+e.tShift[r],Z=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(ee++)!==62)return!1;if(u)return!0;for(d=R=e.sCount[r]+1,e.src.charCodeAt(ee)===32?(ee++,d++,R++,c=!1,q=!0):e.src.charCodeAt(ee)===9?(q=!0,(e.bsCount[r]+R)%4===3?(ee++,d++,R++,c=!1):c=!0):q=!1,O=[e.bMarks[r]],e.bMarks[r]=ee;ee<Z&&(_=e.src.charCodeAt(ee),c0(_));){_===9?R+=4-(R+e.bsCount[r]+(c?1:0))%4:R++;ee++}for(w=[e.bsCount[r]],e.bsCount[r]=e.sCount[r]+1+(q?1:0),S=ee>=Z,F=[e.sCount[r]],e.sCount[r]=R-d,k=[e.tShift[r]],e.tShift[r]=ee-e.bMarks[r],U=e.md.block.ruler.getRules("blockquote"),I=e.parentType,e.parentType="blockquote",C=r+1;C<o&&(W=e.sCount[C]<e.blkIndent,ee=e.bMarks[C]+e.tShift[C],Z=e.eMarks[C],!(ee>=Z));C++){if(e.src.charCodeAt(ee++)===62&&!W){for(d=R=e.sCount[C]+1,e.src.charCodeAt(ee)===32?(ee++,d++,R++,c=!1,q=!0):e.src.charCodeAt(ee)===9?(q=!0,(e.bsCount[C]+R)%4===3?(ee++,d++,R++,c=!1):c=!0):q=!1,O.push(e.bMarks[C]),e.bMarks[C]=ee;ee<Z&&(_=e.src.charCodeAt(ee),c0(_));){_===9?R+=4-(R+e.bsCount[C]+(c?1:0))%4:R++;ee++}S=ee>=Z,w.push(e.bsCount[C]),e.bsCount[C]=e.sCount[C]+1+(q?1:0),F.push(e.sCount[C]),e.sCount[C]=R-d,k.push(e.tShift[C]),e.tShift[C]=ee-e.bMarks[C];continue}if(S)break;for(G=!1,l=0,p=U.length;l<p;l++)if(U[l](e,C,o,!0)){G=!0;break}if(G){e.lineMax=C,e.blkIndent!==0&&(O.push(e.bMarks[C]),w.push(e.bsCount[C]),k.push(e.tShift[C]),F.push(e.sCount[C]),e.sCount[C]-=e.blkIndent);break}O.push(e.bMarks[C]),w.push(e.bsCount[C]),k.push(e.tShift[C]),F.push(e.sCount[C]),e.sCount[C]=-1}for(L=e.blkIndent,e.blkIndent=0,Q=e.push("blockquote_open","blockquote",1),Q.markup=">",Q.map=T=[r,0],e.md.block.tokenize(e,r,C),Q=e.push("blockquote_close","blockquote",-1),Q.markup=">",e.lineMax=ie,e.parentType=I,T[1]=e.line,l=0;l<k.length;l++)e.bMarks[l+r]=O[l],e.tShift[l+r]=k[l],e.sCount[l+r]=F[l],e.bsCount[l+r]=w[l];return e.blkIndent=L,!0},pee=Be.isSpace,gee=function(e,r,o,u){var c,_,l,d,p=e.bMarks[r]+e.tShift[r],S=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(c=e.src.charCodeAt(p++),c!==42&&c!==45&&c!==95))return!1;for(_=1;p<S;){if(l=e.src.charCodeAt(p++),l!==c&&!pee(l))return!1;l===c&&_++}return _<3?!1:(u||(e.line=r+1,d=e.push("hr","hr",0),d.map=[r,e.line],d.markup=Array(_+1).join(String.fromCharCode(c))),!0)},Sg=Be.isSpace;function u0(n,e){var r,o,u,c;return o=n.bMarks[e]+n.tShift[e],u=n.eMarks[e],r=n.src.charCodeAt(o++),r!==42&&r!==45&&r!==43||o<u&&(c=n.src.charCodeAt(o),!Sg(c))?-1:o}function d0(n,e){var r,o=n.bMarks[e]+n.tShift[e],u=o,c=n.eMarks[e];if(u+1>=c||(r=n.src.charCodeAt(u++),r<48||r>57))return-1;for(;;){if(u>=c)return-1;if(r=n.src.charCodeAt(u++),r>=48&&r<=57){if(u-o>=10)return-1;continue}if(r===41||r===46)break;return-1}return u<c&&(r=n.src.charCodeAt(u),!Sg(r))?-1:u}function Eee(n,e){var r,o,u=n.level+2;for(r=e+2,o=n.tokens.length-2;r<o;r++)n.tokens[r].level===u&&n.tokens[r].type==="paragraph_open"&&(n.tokens[r+2].hidden=!0,n.tokens[r].hidden=!0,r+=2)}var See=function(e,r,o,u){var c,_,l,d,p,S,T,C,R,O,w,L,I,F,k,q,G,U,Q,W,ie,ee,Z,Se,Te,$,ue,pe,X=!1,se=!0;if(e.sCount[r]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[r]-e.listIndent>=4&&e.sCount[r]<e.blkIndent)return!1;if(u&&e.parentType==="paragraph"&&e.sCount[r]>=e.blkIndent&&(X=!0),(Z=d0(e,r))>=0){if(T=!0,Te=e.bMarks[r]+e.tShift[r],I=Number(e.src.slice(Te,Z-1)),X&&I!==1)return!1}else if((Z=u0(e,r))>=0)T=!1;else return!1;if(X&&e.skipSpaces(Z)>=e.eMarks[r])return!1;if(L=e.src.charCodeAt(Z-1),u)return!0;for(w=e.tokens.length,T?(pe=e.push("ordered_list_open","ol",1),I!==1&&(pe.attrs=[["start",I]])):pe=e.push("bullet_list_open","ul",1),pe.map=O=[r,0],pe.markup=String.fromCharCode(L),k=r,Se=!1,ue=e.md.block.ruler.getRules("list"),U=e.parentType,e.parentType="list";k<o;){for(ee=Z,F=e.eMarks[k],S=q=e.sCount[k]+Z-(e.bMarks[r]+e.tShift[r]);ee<F;){if(c=e.src.charCodeAt(ee),c===9)q+=4-(q+e.bsCount[k])%4;else if(c===32)q++;else break;ee++}if(_=ee,_>=F?p=1:p=q-S,p>4&&(p=1),d=S+p,pe=e.push("list_item_open","li",1),pe.markup=String.fromCharCode(L),pe.map=C=[r,0],T&&(pe.info=e.src.slice(Te,Z-1)),ie=e.tight,W=e.tShift[r],Q=e.sCount[r],G=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=d,e.tight=!0,e.tShift[r]=_-e.bMarks[r],e.sCount[r]=q,_>=F&&e.isEmpty(r+1)?e.line=Math.min(e.line+2,o):e.md.block.tokenize(e,r,o,!0)Line truncated
|
||||
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
||||
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
||||
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
||||
@@ -281,17 +281,17 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6
|
||||
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
||||
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
||||
l0,-`+(a+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
||||
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},Dt=function(){function E(a){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=a,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=E.prototype;return t.hasClass=function(i){return I.contains(this.classes,i)},t.toNode=function(){for(var i=document.createDocumentFragment(),s=0;s<this.children.length;s++)i.appendChild(this.children[s].toNode());return i},t.toMarkup=function(){for(var i="",s=0;s<this.children.length;s++)i+=this.children[s].toMarkup();return i},t.toText=function(){var i=function(m){return m.toText()};return this.children.map(i).join("")},E}(),ge={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77Line truncated
|
||||
`+Ye+" children.");for(var st=0;st<Ye;st++){var Or=new Xt(ke[st]),Ft=new Ht([Or],{width:"400em",height:re(Le),viewBox:"0 0 "+N+" "+qe,preserveAspectRatio:Et[st]+" slice"}),Nt=q.makeSvgSpan([Je[st]],[Ft],a);if(Ye===1)return{span:Nt,minWidth:Ae,height:Le};Nt.style.height=re(Le),Ee.push(Nt)}return{span:q.makeSpan(["stretchy"],Ee,a),minWidth:Ae,height:Le}}}var s=i(),m=s.span,f=s.minWidth,b=s.height;return m.height=b,m.style.height=re(b),f>0&&(m.style.minWidth=re(f)),m},Zg=function(t,a,i,s,m){var f,b=t.height+t.depth+i+s;if(/fbox|color|angl/.test(a)){if(f=q.makeSpan(["stretchy",a],[],m),a==="fbox"){var N=m.color&&m.getColor();N&&(f.style.borderColor=N)}}else{var y=[];/^[bx]cancel$/.test(a)&&y.push(new cn({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&y.push(new cn({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var M=new Ht(y,{width:"100%",height:re(b)});f=q.makeSvgSpan([],[M],m)}return f.height=b,f.style.height=re(b),f},ur={encloseSpan:Zg,mathMLnode:Wg,svgSpan:Xg};function Ne(E,t){if(!E||E.type!==t)throw new Error("Expected node of type "+t+", but got "+(E?"node of type "+E.type:String(E)));return E}function Xa(E){var t=Zn(E);if(!t)throw new Error("Expected node of symbol group type, but got "+(E?"node of type "+E.type:String(E)));return t}function Zn(E){return E&&(E.type==="atom"||Ba.hasOwnProperty(E.type))?E:null}var Za=function(t,a){var i,s,m;t&&t.type==="supsub"?(s=Ne(t.base,"accent"),i=s.base,t.base=i,m=ka(Me(t,a)),t.base=s):(s=Ne(t,"accent"),i=s.base);var f=Me(i,a.havingCrampedStyle()),b=s.isShifty&&I.isCharacterBox(i),N=0;if(b){var y=I.getBaseElem(i),M=Me(y,a.havingCrampedStyle());N=kn(M).skew}var Y=s.label==="\\c",V=Y?f.height+f.depth:Math.min(f.height,a.fontMetrics().xHeight),H;if(s.isStretchy)H=ur.svgSpan(s,a),H=q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"elem",elem:H,wrapperClasses:["svg-align"],wrapperStyle:N>0?{width:"calc(100% - "+re(2*N)+")",marginLeft:re(2*N)}:void 0}]},a);else{var K,ae;s.label==="\\vec"?(K=q.staticSvg("vec",a),ae=q.svgData.vec[1]):(K=q.makeOrd({mode:s.mode,text:s.label},a,"textord"),K=kn(K),K.italic=0,ae=K.width,Y&&(V+=K.depth)),H=q.makeSpan(["accent-body"],[K]);var le=s.label==="\\textcircled";le&&(H.classes.push("accent-full"),V=f.height);var _e=N;le||(_e-=ae/2),H.style.left=re(_e),s.label==="\\textcircled"&&(H.style.top=".2em"),H=q.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:-V},{type:"elem",elem:H}]},a)}var Ee=q.makeSpan(["mord","accent"],[H],a);return m?(m.children[0]=Ee,m.height=Math.max(Ee.height,m.height),m.classes[0]="mord",m):Ee},Wc=function(t,a){var i=t.isStretchy?ur.mathMLnode(t.label):new te.MathNode("mo",[Bt(t.label,t.mode)]),s=new te.MathNode("mover",[$e(t.base,a),i]);return s.setAttribute("accent","true"),s},Jg=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(E){return"\\"+E}).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(t,a){var i=Qn(a[0]),s=!Jg.test(t.funcName),m=!s||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:s,isShifty:m,base:i}},htmlBuilder:Za,mathmlBuilder:Wc}),ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(t,a){var i=a[0],s=t.parser.mode;return s==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),s="text"),{type:"accent",mode:s,label:t.funcName,isStretchy:!1,isShifty:!0,base:i}},htmlBuilder:Za,mathmlBuilder:Wc}),ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(t,a){var i=t.parser,s=t.funcName,m=a[0];return{type:"accentUnder",mode:i.mode,label:s,base:m}},htmlBuilder:function(t,a){var i=Me(t.base,a),s=ur.svgSpan(t,a),m=t.label==="\\utilde"?.12:0,f=q.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:m},{type:"elem",elem:i}]},a);return q.makeSpan(["mord","accentunder"],[f],a)},mathmlBuilder:function(t,a){var i=ur.mathMLnode(t.label),s=new te.MathNode("munder",[$e(t.base,a),i]);return s.setAttribute("accentunder","true"),s}});var Jn=function(t){var a=new te.MathNode("mpadded",t?[t]:[]);return a.setAttribute("width","+0.6em"),a.setAttribute("lspace","0.3em"),a};ce({type:"xArrow",Line truncated
|
||||
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},Dt=function(){function E(a){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=a,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=E.prototype;return t.hasClass=function(i){return I.contains(this.classes,i)},t.toNode=function(){for(var i=document.createDocumentFragment(),s=0;s<this.children.length;s++)i.appendChild(this.children[s].toNode());return i},t.toMarkup=function(){for(var i="",s=0;s<this.children.length;s++)i+=this.children[s].toMarkup();return i},t.toText=function(){var i=function(m){return m.toText()};return this.children.map(i).join("")},E}(),ge={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77Line truncated
|
||||
`+Ye+" children.");for(var st=0;st<Ye;st++){var Or=new Xt(ke[st]),Ft=new Ht([Or],{width:"400em",height:re(Le),viewBox:"0 0 "+N+" "+qe,preserveAspectRatio:Et[st]+" slice"}),Nt=Y.makeSvgSpan([Je[st]],[Ft],a);if(Ye===1)return{span:Nt,minWidth:ye,height:Le};Nt.style.height=re(Le),Ee.push(Nt)}return{span:Y.makeSpan(["stretchy"],Ee,a),minWidth:ye,height:Le}}}var s=i(),m=s.span,f=s.minWidth,b=s.height;return m.height=b,m.style.height=re(b),f>0&&(m.style.minWidth=re(f)),m},Zg=function(t,a,i,s,m){var f,b=t.height+t.depth+i+s;if(/fbox|color|angl/.test(a)){if(f=Y.makeSpan(["stretchy",a],[],m),a==="fbox"){var N=m.color&&m.getColor();N&&(f.style.borderColor=N)}}else{var y=[];/^[bx]cancel$/.test(a)&&y.push(new cn({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(a)&&y.push(new cn({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var M=new Ht(y,{width:"100%",height:re(b)});f=Y.makeSvgSpan([],[M],m)}return f.height=b,f.style.height=re(b),f},ur={encloseSpan:Zg,mathMLnode:Wg,svgSpan:Xg};function Ae(E,t){if(!E||E.type!==t)throw new Error("Expected node of type "+t+", but got "+(E?"node of type "+E.type:String(E)));return E}function Xa(E){var t=Zn(E);if(!t)throw new Error("Expected node of symbol group type, but got "+(E?"node of type "+E.type:String(E)));return t}function Zn(E){return E&&(E.type==="atom"||Ba.hasOwnProperty(E.type))?E:null}var Za=function(t,a){var i,s,m;t&&t.type==="supsub"?(s=Ae(t.base,"accent"),i=s.base,t.base=i,m=ka(Me(t,a)),t.base=s):(s=Ae(t,"accent"),i=s.base);var f=Me(i,a.havingCrampedStyle()),b=s.isShifty&&I.isCharacterBox(i),N=0;if(b){var y=I.getBaseElem(i),M=Me(y,a.havingCrampedStyle());N=kn(M).skew}var z=s.label==="\\c",V=z?f.height+f.depth:Math.min(f.height,a.fontMetrics().xHeight),H;if(s.isStretchy)H=ur.svgSpan(s,a),H=Y.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"elem",elem:H,wrapperClasses:["svg-align"],wrapperStyle:N>0?{width:"calc(100% - "+re(2*N)+")",marginLeft:re(2*N)}:void 0}]},a);else{var K,ae;s.label==="\\vec"?(K=Y.staticSvg("vec",a),ae=Y.svgData.vec[1]):(K=Y.makeOrd({mode:s.mode,text:s.label},a,"textord"),K=kn(K),K.italic=0,ae=K.width,z&&(V+=K.depth)),H=Y.makeSpan(["accent-body"],[K]);var le=s.label==="\\textcircled";le&&(H.classes.push("accent-full"),V=f.height);var _e=N;le||(_e-=ae/2),H.style.left=re(_e),s.label==="\\textcircled"&&(H.style.top=".2em"),H=Y.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:f},{type:"kern",size:-V},{type:"elem",elem:H}]},a)}var Ee=Y.makeSpan(["mord","accent"],[H],a);return m?(m.children[0]=Ee,m.height=Math.max(Ee.height,m.height),m.classes[0]="mord",m):Ee},Wc=function(t,a){var i=t.isStretchy?ur.mathMLnode(t.label):new te.MathNode("mo",[Bt(t.label,t.mode)]),s=new te.MathNode("mover",[$e(t.base,a),i]);return s.setAttribute("accent","true"),s},Jg=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(E){return"\\"+E}).join("|"));ce({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(t,a){var i=Qn(a[0]),s=!Jg.test(t.funcName),m=!s||t.funcName==="\\widehat"||t.funcName==="\\widetilde"||t.funcName==="\\widecheck";return{type:"accent",mode:t.parser.mode,label:t.funcName,isStretchy:s,isShifty:m,base:i}},htmlBuilder:Za,mathmlBuilder:Wc}),ce({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(t,a){var i=a[0],s=t.parser.mode;return s==="math"&&(t.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+t.funcName+" works only in text mode"),s="text"),{type:"accent",mode:s,label:t.funcName,isStretchy:!1,isShifty:!0,base:i}},htmlBuilder:Za,mathmlBuilder:Wc}),ce({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(t,a){var i=t.parser,s=t.funcName,m=a[0];return{type:"accentUnder",mode:i.mode,label:s,base:m}},htmlBuilder:function(t,a){var i=Me(t.base,a),s=ur.svgSpan(t,a),m=t.label==="\\utilde"?.12:0,f=Y.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:s,wrapperClasses:["svg-align"]},{type:"kern",size:m},{type:"elem",elem:i}]},a);return Y.makeSpan(["mord","accentunder"],[f],a)},mathmlBuilder:function(t,a){var i=ur.mathMLnode(t.label),s=new te.MathNode("munder",[$e(t.base,a),i]);return s.setAttribute("accentunder","true"),s}});var Jn=function(t){var a=new te.MathNode("mpadded",t?[t]:[]);return a.setAttribute("width","+0.6em"),a.setAttribute("lspace","0.3em"),a};ce({type:"xArrow",Line truncated
|
||||
]`,yE="\\\\[a-zA-Z@]+",OE="\\\\[^\uD800-\uDFFF]",IE="("+yE+")"+Bu+"*",DE=`\\\\(
|
||||
|[ \r ]+
|
||||
?)[ \r ]*`,gi="[̀-ͯ]",xE=new RegExp(gi+"+$"),wE="("+Bu+"+)|"+(DE+"|")+"([!-\\[\\]-‧-豈-]"+(gi+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(gi+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+IE)+("|"+OE+")"),Fu=function(){function E(a,i){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=a,this.settings=i,this.tokenRegex=new RegExp(wE,"g"),this.catcodes={"%":14,"~":13}}var t=E.prototype;return t.setCatcode=function(i,s){this.catcodes[i]=s},t.lex=function(){var i=this.input,s=this.tokenRegex.lastIndex;if(s===i.length)return new Sr("EOF",new $t(this,s,s));var m=this.tokenRegex.exec(i);if(m===null||m.index!==s)throw new c("Unexpected character: '"+i[s]+"'",new Sr(i[s],new $t(this,s,s+1)));var f=m[6]||m[3]||(m[2]?"\\ ":" ");if(this.catcodes[f]===14){var b=i.indexOf(`
|
||||
`,this.tokenRegex.lastIndex);return b===-1?(this.tokenRegex.lastIndex=i.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=b+1,this.lex()}return new Sr(f,new $t(this,s,this.tokenRegex.lastIndex))},E}(),ME=function(){function E(a,i){a===void 0&&(a={}),i===void 0&&(i={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=i,this.builtins=a,this.undefStack=[]}var t=E.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(this.undefStack.length===0)throw new c("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var i=this.undefStack.pop();for(var s in i)i.hasOwnProperty(s)&&(i[s]==null?delete this.current[s]:this.current[s]=i[s])},t.endGroups=function(){for(;this.undefStack.length>0;)this.endGroup()},t.has=function(i){return this.current.hasOwnProperty(i)||this.builtins.hasOwnProperty(i)},t.get=function(i){return this.current.hasOwnProperty(i)?this.current[i]:this.builtins[i]},t.set=function(i,s,m){if(m===void 0&&(m=!1),m){for(var f=0;f<this.undefStack.length;f++)delete this.undefStack[f][i];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][i]=s)}else{var b=this.undefStack[this.undefStack.length-1];b&&!b.hasOwnProperty(i)&&(b[i]=this.current[i])}s==null?delete this.current[i]:this.current[i]=s},E}(),LE=mu,kE=LE;A("\\noexpand",function(E){var t=E.popToken();return E.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),A("\\expandafter",function(E){var t=E.popToken();return E.expandOnce(!0),{tokens:[t],numArgs:0}}),A("\\@firstoftwo",function(E){var t=E.consumeArgs(2);return{tokens:t[0],numArgs:0}}),A("\\@secondoftwo",function(E){var t=E.consumeArgs(2);return{tokens:t[1],numArgs:0}}),A("\\@ifnextchar",function(E){var t=E.consumeArgs(3);E.consumeSpaces();var a=E.future();return t[0].length===1&&t[0][0].text===a.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),A("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),A("\\TextOrMath",function(E){var t=E.consumeArgs(2);return E.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Uu={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};A("\\char",function(E){var t=E.popToken(),a,i="";if(t.text==="'")a=8,t=E.popToken();else if(t.text==='"')a=16,t=E.popToken();else if(t.text==="`")if(t=E.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new c("\\char` missing argument");i=t.text.charCodeAt(0)}else a=10;if(a){if(i=Uu[t.text],i==null||i>=a)throw new c("Invalid base-"+a+" digit "+t.text);for(var s;(s=Uu[E.future().text])!=null&&s<a;)i*=a,i+=s,E.popToken()}return"\\@char{"+i+"}"});var Ei=function(t,a,i){var s=t.consumeArg().tokens;if(s.length!==1)throw new c("\\newcommand's first argument must be a macro name");var m=s[0].text,f=t.isDefined(m);if(f&&!a)throw new c("\\newcommand{"+m+"} attempting to redefine "+(m+"; use \\renewcommand"));if(!f&&!i)throw new c("\\renewcommand{"+m+"} when command "+m+" does not yet exist; use \\newcommand");var b=0;if(s=t.consumeArg().tokens,s.length===1&&s[0].text==="["){for(var N="",y=t.expandNextToken();y.text!=="]"&&y.text!=="EOF";)N+=y.text,y=t.expandNextToken();if(!N.match(/^\s*[0-9]+\s*$/))throw new c("Invalid number of arguments: "+N);b=parseInt(N),s=t.consumeArg().tokens}return t.macros.set(m,{tokens:s,numArgs:b}),""};A("\\newcommand",function(E){return Ei(E,!1,!0)}),A("\\renewcommand",function(E){return Ei(E,!0,!1)}),A("\\providecommand",function(E){return Ei(E,!0,!0)}),A("\\message",function(E){var t=E.consumeArgs(1)[0];return console.log(t.reverse().map(function(a){return a.text}).join("")),""}),A("\\errmessage",function(E){var t=E.consumeArgs(1)[0];return console.error(t.reverse().map(function(a){return a.text}).join("")),""}),A("\\show",function(E){var t=E.popToken(),a=t.text;return console.log(t,E.macros.get(a),hr[a],Ze.math[a],Ze.text[a]),""}),A("\\bgroup","{"),A("\\egroup","}"),A("~","\\nobreakspace"),A("\\lq","`"),A("\\rq","'"),A("\\aa","\\r a"),A("\\AA","\\r A"),A("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),A("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),A("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),A("ℬ","\\mathscr{B}"),A("ℰ","\\mathscr{E}"),A("ℱ","\\mathscr{F}"),A("ℋ","\\mathscr{H}"),A("ℐ","\\mathscr{I}"),A("ℒ","\\mathscr{L}"),A("ℳ","\\mathscr{M}"),A("ℛ","\\mathscr{R}"),A("ℭ","\\mathfrak{C}"),A("ℌ","\\mathfrak{H}"),A("ℨ","\\mathfrak{Z}"),A("\\Bbbk","\\Bbb{k}"),A("·","\\cdotp"),A("\\llap","\\mathllap{\\textrm{#1}}"),A("\\rlap","\\mathrlap{\\textrm{#1}}"),A("\\clap","\\mathclap{\\textrm{#1}}"),A("\\mathstrut","\\vphantom{(}"),A("\\underbar","\\underline{\\text{#1}}"),A("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),A("\\neq"Line truncated
|
||||
please report what input caused this bug`);return m=m.slice(1,-1),{type:"verb",mode:"text",body:m,star:f}}Vu.hasOwnProperty(s[0])&&!Ze[this.mode][s[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+s[0]+'" used in math mode',i),s=Vu[s[0]]+s.slice(1));var b=xE.exec(s);b&&(s=s.substring(0,b.index),s==="i"?s="ı":s==="j"&&(s="ȷ"));var N;if(Ze[this.mode][s]){this.settings.strict&&this.mode==="math"&&mn.indexOf(s)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+s[0]+'" used in math mode',i);var y=Ze[this.mode][s].group,M=$t.range(i),Y;if(Pa.hasOwnProperty(y)){var V=y;Y={type:"atom",mode:this.mode,family:V,loc:M,text:s}}else Y={type:y,mode:this.mode,loc:M,text:s};N=Y}else if(s.charCodeAt(0)>=128)this.settings.strict&&(De(s.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+s[0]+'" used in math mode',i):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+s[0]+'"'+(" ("+s.charCodeAt(0)+")"),i)),N={type:"textord",mode:"text",loc:$t.range(i),text:s};else return null;if(this.consume(),b)for(var H=0;H<b[0].length;H++){var K=b[0][H];if(!fi[K])throw new c("Unknown accent ' "+K+"'",i);var ae=fi[K][this.mode]||fi[K].text;if(!ae)throw new c("Accent "+K+" unsupported in "+this.mode+" mode",i);N={type:"accent",mode:this.mode,loc:$t.range(i),label:ae,isStretchy:!1,isShifty:!0,base:N}}return N},E}();$u.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var BE=function(t,a){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new $u(t,a);delete i.gullet.macros.current["\\df@tag"];var s=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!a.displayMode)throw new c("\\tag works only in display equations");s=[{type:"tag",mode:"text",body:s,tag:i.subparse([new Sr("\\df@tag")])}]}return s},hi=BE,Wu=function(t,a,i){a.textContent="";var s=bi(t,i).toNode();a.appendChild(s)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Wu=function(){throw new c("KaTeX doesn't work in quirks mode.")});var FE=function(t,a){var i=bi(t,a).toMarkup();return i},UE=function(t,a){var i=new F(a);return hi(t,i)},Ku=function(t,a,i){if(i.throwOnError||!(t instanceof c))throw t;var s=q.makeSpan(["katex-error"],[new Ot(a)]);return s.setAttribute("title",t.toString()),s.setAttribute("style","color:"+i.errorColor),s},bi=function(t,a){var i=new F(a);try{var s=hi(t,i);return Hg(s,t,i)}catch(m){return Ku(m,t,i)}},GE=function(t,a){var i=new F(a);try{var s=hi(t,i);return Vg(s,t,i)}catch(m){return Ku(m,t,i)}},qE={version:"0.16.8",render:Wu,renderToString:FE,ParseError:c,SETTINGS_SCHEMA:G,__parse:UE,__renderToDomTree:bi,__renderToHTMLTree:GE,__setFontMetrics:Oe,__defineSymbol:g,__defineFunction:ce,__defineMacro:A,__domTree:{Span:Nr,Anchor:ln,SymbolNode:Ot,SvgNode:Ht,PathNode:Xt,LineNode:cn}},YE=qE;return o=o.default,o}()})})(wg);var ore=wg.exports,hc=ore;function y0(n,e){var r,o,u=n.posMax,c=!0,_=!0;return r=e>0?n.src.charCodeAt(e-1):-1,o=e+1<=u?n.src.charCodeAt(e+1):-1,(r===32||r===9||o>=48&&o<=57)&&(_=!1),(o===32||o===9)&&(c=!1),{can_open:c,can_close:_}}function sre(n,e){var r,o,u,c,_;if(n.src[n.pos]!=="$")return!1;if(c=y0(n,n.pos),!c.can_open)return e||(n.pending+="$"),n.pos+=1,!0;for(r=n.pos+1,o=r;(o=n.src.indexOf("$",o))!==-1;){for(_=o-1;n.src[_]==="\\";)_-=1;if((o-_)%2==1)break;o+=1}return o===-1?(e||(n.pending+="$"),n.pos=r,!0):o-r===0?(e||(n.pending+="$$"),n.pos=r+1,!0):(c=y0(n,o),c.can_close?(e||(u=n.push("math_inline","math",0),u.markup="$",u.content=n.src.slice(r,o)),n.pos=o+1,!0):(e||(n.pending+="$"),n.pos=r,!0))}function lre(n,e,r,o){var u,c,_,l,d=!1,p,S=n.bMarks[e]+n.tShift[e],T=n.eMarks[e];if(S+2>T||n.src.slice(S,S+2)!=="$$")return!1;if(S+=2,u=n.src.slice(S,T),o)return!0;for(u.trim().slice(-2)==="$$"&&(u=u.trim().slice(0,-2),d=!0),_=e;!d&&(_++,!(_>=r||(S=n.bMarks[_]+n.tShift[_],T=n.eMarks[_],S<T&&n.tShift[_]<n.blkIndent)));)n.src.slice(S,T).trim().slice(-2)==="$$"&&(l=n.src.slice(0,T).lastIndexOf("$$"),c=n.src.slice(S,l),d=!0);return n.line=_+1,p=n.push("math_block","math",0),p.block=!0,p.content=(u&&u.trim()?u+`
|
||||
`,this.tokenRegex.lastIndex);return b===-1?(this.tokenRegex.lastIndex=i.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=b+1,this.lex()}return new Sr(f,new $t(this,s,this.tokenRegex.lastIndex))},E}(),ME=function(){function E(a,i){a===void 0&&(a={}),i===void 0&&(i={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=i,this.builtins=a,this.undefStack=[]}var t=E.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(this.undefStack.length===0)throw new c("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var i=this.undefStack.pop();for(var s in i)i.hasOwnProperty(s)&&(i[s]==null?delete this.current[s]:this.current[s]=i[s])},t.endGroups=function(){for(;this.undefStack.length>0;)this.endGroup()},t.has=function(i){return this.current.hasOwnProperty(i)||this.builtins.hasOwnProperty(i)},t.get=function(i){return this.current.hasOwnProperty(i)?this.current[i]:this.builtins[i]},t.set=function(i,s,m){if(m===void 0&&(m=!1),m){for(var f=0;f<this.undefStack.length;f++)delete this.undefStack[f][i];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][i]=s)}else{var b=this.undefStack[this.undefStack.length-1];b&&!b.hasOwnProperty(i)&&(b[i]=this.current[i])}s==null?delete this.current[i]:this.current[i]=s},E}(),LE=mu,kE=LE;A("\\noexpand",function(E){var t=E.popToken();return E.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),A("\\expandafter",function(E){var t=E.popToken();return E.expandOnce(!0),{tokens:[t],numArgs:0}}),A("\\@firstoftwo",function(E){var t=E.consumeArgs(2);return{tokens:t[0],numArgs:0}}),A("\\@secondoftwo",function(E){var t=E.consumeArgs(2);return{tokens:t[1],numArgs:0}}),A("\\@ifnextchar",function(E){var t=E.consumeArgs(3);E.consumeSpaces();var a=E.future();return t[0].length===1&&t[0][0].text===a.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),A("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),A("\\TextOrMath",function(E){var t=E.consumeArgs(2);return E.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Uu={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};A("\\char",function(E){var t=E.popToken(),a,i="";if(t.text==="'")a=8,t=E.popToken();else if(t.text==='"')a=16,t=E.popToken();else if(t.text==="`")if(t=E.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new c("\\char` missing argument");i=t.text.charCodeAt(0)}else a=10;if(a){if(i=Uu[t.text],i==null||i>=a)throw new c("Invalid base-"+a+" digit "+t.text);for(var s;(s=Uu[E.future().text])!=null&&s<a;)i*=a,i+=s,E.popToken()}return"\\@char{"+i+"}"});var Ei=function(t,a,i){var s=t.consumeArg().tokens;if(s.length!==1)throw new c("\\newcommand's first argument must be a macro name");var m=s[0].text,f=t.isDefined(m);if(f&&!a)throw new c("\\newcommand{"+m+"} attempting to redefine "+(m+"; use \\renewcommand"));if(!f&&!i)throw new c("\\renewcommand{"+m+"} when command "+m+" does not yet exist; use \\newcommand");var b=0;if(s=t.consumeArg().tokens,s.length===1&&s[0].text==="["){for(var N="",y=t.expandNextToken();y.text!=="]"&&y.text!=="EOF";)N+=y.text,y=t.expandNextToken();if(!N.match(/^\s*[0-9]+\s*$/))throw new c("Invalid number of arguments: "+N);b=parseInt(N),s=t.consumeArg().tokens}return t.macros.set(m,{tokens:s,numArgs:b}),""};A("\\newcommand",function(E){return Ei(E,!1,!0)}),A("\\renewcommand",function(E){return Ei(E,!0,!1)}),A("\\providecommand",function(E){return Ei(E,!0,!0)}),A("\\message",function(E){var t=E.consumeArgs(1)[0];return console.log(t.reverse().map(function(a){return a.text}).join("")),""}),A("\\errmessage",function(E){var t=E.consumeArgs(1)[0];return console.error(t.reverse().map(function(a){return a.text}).join("")),""}),A("\\show",function(E){var t=E.popToken(),a=t.text;return console.log(t,E.macros.get(a),hr[a],Ze.math[a],Ze.text[a]),""}),A("\\bgroup","{"),A("\\egroup","}"),A("~","\\nobreakspace"),A("\\lq","`"),A("\\rq","'"),A("\\aa","\\r a"),A("\\AA","\\r A"),A("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),A("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),A("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),A("ℬ","\\mathscr{B}"),A("ℰ","\\mathscr{E}"),A("ℱ","\\mathscr{F}"),A("ℋ","\\mathscr{H}"),A("ℐ","\\mathscr{I}"),A("ℒ","\\mathscr{L}"),A("ℳ","\\mathscr{M}"),A("ℛ","\\mathscr{R}"),A("ℭ","\\mathfrak{C}"),A("ℌ","\\mathfrak{H}"),A("ℨ","\\mathfrak{Z}"),A("\\Bbbk","\\Bbb{k}"),A("·","\\cdotp"),A("\\llap","\\mathllap{\\textrm{#1}}"),A("\\rlap","\\mathrlap{\\textrm{#1}}"),A("\\clap","\\mathclap{\\textrm{#1}}"),A("\\mathstrut","\\vphantom{(}"),A("\\underbar","\\underline{\\text{#1}}"),A("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),A("\\neq"Line truncated
|
||||
please report what input caused this bug`);return m=m.slice(1,-1),{type:"verb",mode:"text",body:m,star:f}}Vu.hasOwnProperty(s[0])&&!Ze[this.mode][s[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+s[0]+'" used in math mode',i),s=Vu[s[0]]+s.slice(1));var b=xE.exec(s);b&&(s=s.substring(0,b.index),s==="i"?s="ı":s==="j"&&(s="ȷ"));var N;if(Ze[this.mode][s]){this.settings.strict&&this.mode==="math"&&mn.indexOf(s)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+s[0]+'" used in math mode',i);var y=Ze[this.mode][s].group,M=$t.range(i),z;if(Pa.hasOwnProperty(y)){var V=y;z={type:"atom",mode:this.mode,family:V,loc:M,text:s}}else z={type:y,mode:this.mode,loc:M,text:s};N=z}else if(s.charCodeAt(0)>=128)this.settings.strict&&(De(s.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+s[0]+'" used in math mode',i):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+s[0]+'"'+(" ("+s.charCodeAt(0)+")"),i)),N={type:"textord",mode:"text",loc:$t.range(i),text:s};else return null;if(this.consume(),b)for(var H=0;H<b[0].length;H++){var K=b[0][H];if(!fi[K])throw new c("Unknown accent ' "+K+"'",i);var ae=fi[K][this.mode]||fi[K].text;if(!ae)throw new c("Accent "+K+" unsupported in "+this.mode+" mode",i);N={type:"accent",mode:this.mode,loc:$t.range(i),label:ae,isStretchy:!1,isShifty:!0,base:N}}return N},E}();$u.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var BE=function(t,a){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new $u(t,a);delete i.gullet.macros.current["\\df@tag"];var s=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!a.displayMode)throw new c("\\tag works only in display equations");s=[{type:"tag",mode:"text",body:s,tag:i.subparse([new Sr("\\df@tag")])}]}return s},hi=BE,Wu=function(t,a,i){a.textContent="";var s=bi(t,i).toNode();a.appendChild(s)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),Wu=function(){throw new c("KaTeX doesn't work in quirks mode.")});var FE=function(t,a){var i=bi(t,a).toMarkup();return i},UE=function(t,a){var i=new q(a);return hi(t,i)},Ku=function(t,a,i){if(i.throwOnError||!(t instanceof c))throw t;var s=Y.makeSpan(["katex-error"],[new Ot(a)]);return s.setAttribute("title",t.toString()),s.setAttribute("style","color:"+i.errorColor),s},bi=function(t,a){var i=new q(a);try{var s=hi(t,i);return Hg(s,t,i)}catch(m){return Ku(m,t,i)}},GE=function(t,a){var i=new q(a);try{var s=hi(t,i);return Vg(s,t,i)}catch(m){return Ku(m,t,i)}},qE={version:"0.16.8",render:Wu,renderToString:FE,ParseError:c,SETTINGS_SCHEMA:F,__parse:UE,__renderToDomTree:bi,__renderToHTMLTree:GE,__setFontMetrics:Oe,__defineSymbol:g,__defineFunction:ce,__defineMacro:A,__domTree:{Span:Nr,Anchor:ln,SymbolNode:Ot,SvgNode:Ht,PathNode:Xt,LineNode:cn}},YE=qE;return o=o.default,o}()})})(wg);var ore=wg.exports,hc=ore;function y0(n,e){var r,o,u=n.posMax,c=!0,_=!0;return r=e>0?n.src.charCodeAt(e-1):-1,o=e+1<=u?n.src.charCodeAt(e+1):-1,(r===32||r===9||o>=48&&o<=57)&&(_=!1),(o===32||o===9)&&(c=!1),{can_open:c,can_close:_}}function sre(n,e){var r,o,u,c,_;if(n.src[n.pos]!=="$")return!1;if(c=y0(n,n.pos),!c.can_open)return e||(n.pending+="$"),n.pos+=1,!0;for(r=n.pos+1,o=r;(o=n.src.indexOf("$",o))!==-1;){for(_=o-1;n.src[_]==="\\";)_-=1;if((o-_)%2==1)break;o+=1}return o===-1?(e||(n.pending+="$"),n.pos=r,!0):o-r===0?(e||(n.pending+="$$"),n.pos=r+1,!0):(c=y0(n,o),c.can_close?(e||(u=n.push("math_inline","math",0),u.markup="$",u.content=n.src.slice(r,o)),n.pos=o+1,!0):(e||(n.pending+="$"),n.pos=r,!0))}function lre(n,e,r,o){var u,c,_,l,d=!1,p,S=n.bMarks[e]+n.tShift[e],T=n.eMarks[e];if(S+2>T||n.src.slice(S,S+2)!=="$$")return!1;if(S+=2,u=n.src.slice(S,T),o)return!0;for(u.trim().slice(-2)==="$$"&&(u=u.trim().slice(0,-2),d=!0),_=e;!d&&(_++,!(_>=r||(S=n.bMarks[_]+n.tShift[_],T=n.eMarks[_],S<T&&n.tShift[_]<n.blkIndent)));)n.src.slice(S,T).trim().slice(-2)==="$$"&&(l=n.src.slice(0,T).lastIndexOf("$$"),c=n.src.slice(S,l),d=!0);return n.line=_+1,p=n.push("math_block","math",0),p.block=!0,p.content=(u&&u.trim()?u+`
|
||||
`:"")+n.getLines(e+1,_,n.tShift[e],!0)+(c&&c.trim()?c:""),p.map=[e,n.line],p.markup="$$",!0}function ma(n){return n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}var cre=function(e,r){r=r||{},r.katex&&(hc=r.katex),r.blockClass||(r.blockClass="");var o=function(l){r.displayMode=!1;try{return hc.renderToString(l,r)}catch(d){return r.throwOnError&&console.log(d),`<span class='katex-error' title='${ma(d.toString())}'>${ma(l)}</span>`}},u=function(l,d){return o(l[d].content)},c=function(l){r.displayMode=!0;try{return`<p class="katex-block ${r.blockClass}">`+hc.renderToString(l,r)+"</p>"}catch(d){return r.throwOnError&&console.log(d),`<p class='katex-block katex-error ${r.blockClass}' title='${ma(d.toString())}'>${ma(l)}</p>`}},_=function(l,d){return c(l[d].content)+`
|
||||
`};e.inline.ruler.after("escape","math_inline",sre),e.block.ruler.after("blockquote","math_block",lre,{alt:["paragraph","reference","blockquote","list"]}),e.renderer.rules.math_inline=u,e.renderer.rules.math_block=_};const ure=va(cre);/*!
|
||||
* qrcode.vue v3.4.1
|
||||
* A Vue.js component to generate QRCode.
|
||||
* © 2017-2023 @scopewu(https://github.com/scopewu)
|
||||
* MIT License.
|
||||
*/var ha=function(){return ha=Object.assign||function(e){for(var r,o=1,u=arguments.length;o<u;o++){r=arguments[o];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(e[c]=r[c])}return e},ha.apply(this,arguments)};var Lr;(function(n){var e=function(){function _(l,d,p,S){if(this.version=l,this.errorCorrectionLevel=d,this.modules=[],this.isFunction=[],l<_.MIN_VERSION||l>_.MAX_VERSION)throw new RangeError("Version value out of range");if(S<-1||S>7)throw new RangeError("Mask value out of range");this.size=l*4+17;for(var T=[],v=0;v<this.size;v++)T.push(!1);for(var v=0;v<this.size;v++)this.modules.push(T.slice()),this.isFunction.push(T.slice());this.drawFunctionPatterns();var R=this.addEccAndInterleave(p);if(this.drawCodewords(R),S==-1)for(var O=1e9,v=0;v<8;v++){this.applyMask(v),this.drawFormatBits(v);var w=this.getPenaltyScore();w<O&&(S=v,O=w),this.applyMask(v)}u(0<=S&&S<=7),this.mask=S,this.applyMask(S),this.drawFormatBits(S),this.isFunction=[]}return _.encodeText=function(l,d){var p=n.QrSegment.makeSegments(l);return _.encodeSegments(p,d)},_.encodeBinary=function(l,d){var p=n.QrSegment.makeBytes(l);return _.encodeSegments([p],d)},_.encodeSegments=function(l,d,p,S,T,v){if(p===void 0&&(p=1),S===void 0&&(S=40),T===void 0&&(T=-1),v===void 0&&(v=!0),!(_.MIN_VERSION<=p&&p<=S&&S<=_.MAX_VERSION)||T<-1||T>7)throw new RangeError("Invalid value");var R,O;for(R=p;;R++){var w=_.getNumDataCodewords(R,d)*8,L=c.getTotalBits(l,R);if(L<=w){O=L;break}if(R>=S)throw new RangeError("Data too long")}for(var I=0,G=[_.Ecc.MEDIUM,_.Ecc.QUARTILE,_.Ecc.HIGH];I<G.length;I++){var k=G[I];v&&O<=_.getNumDataCodewords(R,k)*8&&(d=k)}for(var F=[],z=0,U=l;z<U.length;z++){var Z=U[z];r(Z.mode.modeBits,4,F),r(Z.numChars,Z.mode.numCharCountBits(R),F);for(var W=0,ie=Z.getData();W<ie.length;W++){var ee=ie[W];F.push(ee)}}u(F.length==O);var X=_.getNumDataCodewords(R,d)*8;u(F.length<=X),r(0,Math.min(4,X-F.length),F),r(0,(8-F.length%8)%8,F),u(F.length%8==0);for(var Se=236;F.length<X;Se^=253)r(Se,8,F);for(var Te=[];Te.length*8<F.length;)Te.push(0);return F.forEach(function($,ue){return Te[ue>>>3]|=$<<7-(ue&7)}),new _(R,d,Te,T)},_.prototype.getModule=function(l,d){return 0<=l&&l<this.size&&0<=d&&d<this.size&&this.modules[d][l]},_.prototype.getModules=function(){return this.modules},_.prototype.drawFunctionPatterns=function(){for(var l=0;l<this.size;l++)this.setFunctionModule(6,l,l%2==0),this.setFunctionModule(l,6,l%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var d=this.getAlignmentPatternPositions(),p=d.length,l=0;l<p;l++)for(var S=0;S<p;S++)l==0&&S==0||l==0&&S==p-1||l==p-1&&S==0||this.drawAlignmentPattern(d[l],d[S]);this.drawFormatBits(0),this.drawVersion()},_.prototype.drawFormatBits=function(l){for(var d=this.errorCorrectionLevel.formatBits<<3|l,p=d,S=0;S<10;S++)p=p<<1^(p>>>9)*1335;var T=(d<<10|p)^21522;u(T>>>15==0);for(var S=0;S<=5;S++)this.setFunctionModule(8,S,o(T,S));this.setFunctionModule(8,7,o(T,6)),this.setFunctionModule(8,8,o(T,7)),this.setFunctionModule(7,8,o(T,8));for(var S=9;S<15;S++)this.setFunctionModule(14-S,8,o(T,S));for(var S=0;S<8;S++)this.setFunctionModule(this.size-1-S,8,o(T,S));for(var S=8;S<15;S++)this.setFunctionModule(8,this.size-15+S,o(T,S));this.setFunctionModule(8,this.size-8,!0)},_.prototype.drawVersion=function(){if(!(this.version<7)){for(var l=this.version,d=0;d<12;d++)l=l<<1^(l>>>11)*7973;var p=this.version<<12|l;u(p>>>18==0);for(var d=0;d<18;d++){var S=o(p,d),T=this.size-11+d%3,v=Math.floor(d/3);this.setFunctionModule(T,v,S),this.setFunctionModule(v,T,S)}}},_.prototype.drawFinderPattern=function(l,d){for(var p=-4;p<=4;p++)for(var S=-4;S<=4;S++){var T=Math.max(Math.abs(S),Math.abs(p)),v=l+S,R=d+p;0<=v&&v<this.size&&0<=R&&R<this.size&&this.setFunctionModule(v,R,T!=2&&T!=4)}},_.prototype.drawAlignmentPattern=function(l,d){for(var p=-2;p<=2;p++)for(var S=-2;S<=2;S++)this.setFunctionModule(l+S,d+p,Math.max(Math.abs(S),Math.abs(p))!=1)},_.prototype.setFunctionModule=function(l,d,p){this.modules[d][l]=p,this.isFunction[d][l]=!0},_.prototype.addEccAndInterleave=function(l){var d=this.version,p=this.errorCorrectionLevel;if(l.length!=_.getNumDataCodewords(d,p))throw new RangeError("Invalid argument");for(var S=_.NUM_ERROR_CORRECTION_BLOCKS[p.ordinal][d],T=_.ECC_CODEWORDS_PER_BLOCK[p.ordinal][d],v=Math.floor(_.getNumRawDataModules(d)/8),R=S-v%S,O=Math.floor(v/S),w=[],L=_.reedSolomonComputeDivisor(T),I=0,G=0;I<S;I++){var k=l.slice(G,G+O-T+(I<R?0:1));G+=k.length;var F=_.reedSolomonComputeRemainder(k,L);I<R&&k.push(0),w.push(k.concat(F))}for(var z=[],U=function(Z){w.forEach(function(W,ie){(Z!=O-T||ie>=R)&&z.push(W[Z])})},I=0;I<w[0].length;I++)U(I);return u(z.length==v),z},_.prototype.drawCodewords=function(l){if(l.length!=Math.floor(_.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var d=0,p=this.size-1;p>=1;p-=2){p==6&&(p=5);for(var S=0;S<this.size;S++)for(var T=0;T<2;T++){var v=p-T,R=(p+1&2)==0,O=R?this.size-1-S:S;!this.isFuLine truncated
|
||||
*/var ha=function(){return ha=Object.assign||function(e){for(var r,o=1,u=arguments.length;o<u;o++){r=arguments[o];for(var c in r)Object.prototype.hasOwnProperty.call(r,c)&&(e[c]=r[c])}return e},ha.apply(this,arguments)};var Lr;(function(n){var e=function(){function _(l,d,p,S){if(this.version=l,this.errorCorrectionLevel=d,this.modules=[],this.isFunction=[],l<_.MIN_VERSION||l>_.MAX_VERSION)throw new RangeError("Version value out of range");if(S<-1||S>7)throw new RangeError("Mask value out of range");this.size=l*4+17;for(var T=[],C=0;C<this.size;C++)T.push(!1);for(var C=0;C<this.size;C++)this.modules.push(T.slice()),this.isFunction.push(T.slice());this.drawFunctionPatterns();var R=this.addEccAndInterleave(p);if(this.drawCodewords(R),S==-1)for(var O=1e9,C=0;C<8;C++){this.applyMask(C),this.drawFormatBits(C);var w=this.getPenaltyScore();w<O&&(S=C,O=w),this.applyMask(C)}u(0<=S&&S<=7),this.mask=S,this.applyMask(S),this.drawFormatBits(S),this.isFunction=[]}return _.encodeText=function(l,d){var p=n.QrSegment.makeSegments(l);return _.encodeSegments(p,d)},_.encodeBinary=function(l,d){var p=n.QrSegment.makeBytes(l);return _.encodeSegments([p],d)},_.encodeSegments=function(l,d,p,S,T,C){if(p===void 0&&(p=1),S===void 0&&(S=40),T===void 0&&(T=-1),C===void 0&&(C=!0),!(_.MIN_VERSION<=p&&p<=S&&S<=_.MAX_VERSION)||T<-1||T>7)throw new RangeError("Invalid value");var R,O;for(R=p;;R++){var w=_.getNumDataCodewords(R,d)*8,L=c.getTotalBits(l,R);if(L<=w){O=L;break}if(R>=S)throw new RangeError("Data too long")}for(var I=0,F=[_.Ecc.MEDIUM,_.Ecc.QUARTILE,_.Ecc.HIGH];I<F.length;I++){var k=F[I];C&&O<=_.getNumDataCodewords(R,k)*8&&(d=k)}for(var q=[],G=0,U=l;G<U.length;G++){var Q=U[G];r(Q.mode.modeBits,4,q),r(Q.numChars,Q.mode.numCharCountBits(R),q);for(var W=0,ie=Q.getData();W<ie.length;W++){var ee=ie[W];q.push(ee)}}u(q.length==O);var Z=_.getNumDataCodewords(R,d)*8;u(q.length<=Z),r(0,Math.min(4,Z-q.length),q),r(0,(8-q.length%8)%8,q),u(q.length%8==0);for(var Se=236;q.length<Z;Se^=253)r(Se,8,q);for(var Te=[];Te.length*8<q.length;)Te.push(0);return q.forEach(function($,ue){return Te[ue>>>3]|=$<<7-(ue&7)}),new _(R,d,Te,T)},_.prototype.getModule=function(l,d){return 0<=l&&l<this.size&&0<=d&&d<this.size&&this.modules[d][l]},_.prototype.getModules=function(){return this.modules},_.prototype.drawFunctionPatterns=function(){for(var l=0;l<this.size;l++)this.setFunctionModule(6,l,l%2==0),this.setFunctionModule(l,6,l%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(var d=this.getAlignmentPatternPositions(),p=d.length,l=0;l<p;l++)for(var S=0;S<p;S++)l==0&&S==0||l==0&&S==p-1||l==p-1&&S==0||this.drawAlignmentPattern(d[l],d[S]);this.drawFormatBits(0),this.drawVersion()},_.prototype.drawFormatBits=function(l){for(var d=this.errorCorrectionLevel.formatBits<<3|l,p=d,S=0;S<10;S++)p=p<<1^(p>>>9)*1335;var T=(d<<10|p)^21522;u(T>>>15==0);for(var S=0;S<=5;S++)this.setFunctionModule(8,S,o(T,S));this.setFunctionModule(8,7,o(T,6)),this.setFunctionModule(8,8,o(T,7)),this.setFunctionModule(7,8,o(T,8));for(var S=9;S<15;S++)this.setFunctionModule(14-S,8,o(T,S));for(var S=0;S<8;S++)this.setFunctionModule(this.size-1-S,8,o(T,S));for(var S=8;S<15;S++)this.setFunctionModule(8,this.size-15+S,o(T,S));this.setFunctionModule(8,this.size-8,!0)},_.prototype.drawVersion=function(){if(!(this.version<7)){for(var l=this.version,d=0;d<12;d++)l=l<<1^(l>>>11)*7973;var p=this.version<<12|l;u(p>>>18==0);for(var d=0;d<18;d++){var S=o(p,d),T=this.size-11+d%3,C=Math.floor(d/3);this.setFunctionModule(T,C,S),this.setFunctionModule(C,T,S)}}},_.prototype.drawFinderPattern=function(l,d){for(var p=-4;p<=4;p++)for(var S=-4;S<=4;S++){var T=Math.max(Math.abs(S),Math.abs(p)),C=l+S,R=d+p;0<=C&&C<this.size&&0<=R&&R<this.size&&this.setFunctionModule(C,R,T!=2&&T!=4)}},_.prototype.drawAlignmentPattern=function(l,d){for(var p=-2;p<=2;p++)for(var S=-2;S<=2;S++)this.setFunctionModule(l+S,d+p,Math.max(Math.abs(S),Math.abs(p))!=1)},_.prototype.setFunctionModule=function(l,d,p){this.modules[d][l]=p,this.isFunction[d][l]=!0},_.prototype.addEccAndInterleave=function(l){var d=this.version,p=this.errorCorrectionLevel;if(l.length!=_.getNumDataCodewords(d,p))throw new RangeError("Invalid argument");for(var S=_.NUM_ERROR_CORRECTION_BLOCKS[p.ordinal][d],T=_.ECC_CODEWORDS_PER_BLOCK[p.ordinal][d],C=Math.floor(_.getNumRawDataModules(d)/8),R=S-C%S,O=Math.floor(C/S),w=[],L=_.reedSolomonComputeDivisor(T),I=0,F=0;I<S;I++){var k=l.slice(F,F+O-T+(I<R?0:1));F+=k.length;var q=_.reedSolomonComputeRemainder(k,L);I<R&&k.push(0),w.push(k.concat(q))}for(var G=[],U=function(Q){w.forEach(function(W,ie){(Q!=O-T||ie>=R)&&G.push(W[Q])})},I=0;I<w[0].length;I++)U(I);return u(G.length==C),G},_.prototype.drawCodewords=function(l){if(l.length!=Math.floor(_.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var d=0,p=this.size-1;p>=1;p-=2){p==6&&(p=5);for(var S=0;S<this.size;S++)for(var T=0;T<2;T++){var C=p-T,R=(p+1&2)==0,O=R?this.size-1-S:S;!this.isFuLine truncated
|
||||
@@ -0,0 +1,20 @@
|
||||
import{U as dt,d as Ol,e as Ot,g as zt,c as bt,f as bn,b as zl,t as Wl,E as Hl}from"./el-input-1fa85f7c.js";import"./el-tag-3005f0d6.js";import{b as yn,i as Cn,a as _l,E as Bl,d as lt,c as wn,C as Il}from"./el-select-a6f71890.js";import{i as ct,a as at,b as Vl,g as Kl,S as Sn,k as xn,c as Dl,d as Ul,e as En,f as ql,h as jl,j as Gl,l as Yl,m as Xl,n as Jl,u as Ql,y as Zl,E as ea}from"./el-popper-61ab67a6.js";import"./el-tooltip-4ed993c7.js";import{b1 as Zt,b2 as ft,b3 as kn,b4 as Pn,b5 as en,b6 as He,b7 as Rn,b8 as ta,b9 as Nn,ba as Wt,bb as Ln,bc as yt,bd as Mn,be as na,bf as la,bg as aa,bh as oa,ae as Ht,G as Ct,l as Se,af as ot,k as ce,c as M,a2 as st,O as ie,n as Le,aM as se,s as P,ar as _e,q as wt,bi as tn,d as U,av as $n,u as Q,o as A,a as oe,w as X,S as J,e as W,f as b,A as Ne,V as B,J as qe,bj as rt,r as ze,a9 as Be,Z as Te,X as Y,W as pe,h as ht,_ as we,g as $e,b as Me,j as _t,p as Bt,x as Fn,i as It,ah as Vt,aH as it,aj as Re,L as Ye,m as An,bk as Tn,B as G,aa as ut,aC as We,bl as sa,bm as nn,bn as ra,Y as ia,bo as ua,a_ as Kt,z as O,a1 as je,F as Ge,aZ as da,bp as ca,R as ye,bq as On,br as zn,P as Xe,aS as fa,az as Dt,I as Wn,a4 as ha,aF as Qe,D as St,aJ as pa,bs as ln,a$ as an,C as on,bt as va,bu as ga,bv as ma,Q as ba,a8 as ya,ad as vt,aB as gt}from"./index-098ca3b6.js";import{g as Ca}from"./_commonjsHelpers-de833af9.js";function Ut(e){return e}function wa(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Sa=800,xa=16,Ea=Date.now;function ka(e){var t=0,n=0;return function(){var l=Ea(),a=xa-(l-n);if(n=l,a>0){if(++t>=Sa)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Pa(e){return function(){return e}}var Ra=Zt?function(e,t){return Zt(e,"toString",{configurable:!0,enumerable:!1,value:Pa(t),writable:!0})}:Ut;const Na=Ra;var La=ka(Na);const Hn=La;var sn=Math.max;function _n(e,t,n){return t=sn(t===void 0?e.length-1:t,0),function(){for(var l=arguments,a=-1,s=sn(l.length-t,0),i=Array(s);++a<s;)i[a]=l[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=l[a];return o[t]=n(i),wa(e,this,o)}}function Ma(e,t){return Hn(_n(e,t,Ut),e+"")}function $a(e,t,n){if(!ft(n))return!1;var l=typeof t;return(l=="number"?ct(n)&&kn(t,n.length):l=="string"&&t in n)?Pn(n[t],e):!1}function Fa(e){return Ma(function(t,n){var l=-1,a=n.length,s=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(a--,s):void 0,i&&$a(n[0],n[1],i)&&(s=a<3?void 0:s,a=1),t=Object(t);++l<a;){var o=n[l];o&&e(t,o,l,s)}return t})}var rn=en?en.isConcatSpreadable:void 0;function Aa(e){return He(e)||at(e)||!!(rn&&e&&e[rn])}function qt(e,t,n,l,a){var s=-1,i=e.length;for(n||(n=Aa),a||(a=[]);++s<i;){var o=e[s];t>0&&n(o)?t>1?qt(o,t-1,n,l,a):Vl(a,o):l||(a[a.length]=o)}return a}function Ta(e){var t=e==null?0:e.length;return t?qt(e,1):[]}function Oa(e){return Hn(_n(e,void 0,Ta),e+"")}var za="[object Object]",Wa=Function.prototype,Ha=Object.prototype,Bn=Wa.toString,_a=Ha.hasOwnProperty,Ba=Bn.call(Object);function Ia(e){if(!Rn(e)||ta(e)!=za)return!1;var t=Kl(e);if(t===null)return!0;var n=_a.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Bn.call(n)==Ba}var Va=1,Ka=2;function Da(e,t,n,l){var a=n.length,s=a,i=!l;if(e==null)return!s;for(e=Object(e);a--;){var o=n[a];if(i&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<s;){o=n[a];var r=o[0],u=e[r],c=o[1];if(i&&o[2]){if(u===void 0&&!(r in e))return!1}else{var f=new Sn;if(l)var v=l(u,c,r,e,t,f);if(!(v===void 0?yn(c,u,Va|Ka,l,f):v))return!1}}return!0}function In(e){return e===e&&!ft(e)}function Ua(e){for(var t=xn(e),n=t.length;n--;){var l=t[n],a=e[l];t[n]=[l,a,In(a)]}return t}function Vn(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function qa(e){var t=Ua(e);return t.length==1&&t[0][2]?Vn(t[0][0],t[0][1]):function(n){return n===e||Da(n,e,t)}}function ja(e,t){return e!=null&&t in Object(e)}function Ga(e,t,n){t=Nn(t,e);for(var l=-1,a=t.length,s=!1;++l<a;){var i=Wt(t[l]);if(!(s=e!=null&&n(e,i)))break;e=e[i]}return s||++l!=a?s:(a=e==null?0:e.length,!!a&&Dl(a)&&kn(i,a)&&(He(e)||at(e)))}function Kn(e,t){return e!=null&&Ga(e,t,ja)}var Ya=1,Xa=2;function Ja(e,t){return Ln(e)&&In(t)?Vn(Wt(e),t):function(n){var l=yt(n,e);return l===void 0&&l===t?Kn(n,e):yn(t,l,Ya|Xa)}}function Qa(e){return function(t){return t==null?void 0:t[e]}}function Za(e){return function(t){return Mn(t,e)}}function eo(e){return Ln(e)?Qa(Wt(e)):Za(e)}function to(e){return typeof e=="function"?e:e==null?Ut:typeof e=="object"?He(e)?Ja(e[0],e[1]):qa(e):eo(e)}function no(e){return function(t,n,l){for(var a=-1,s=Object(t),i=l(t),o=i.length;o--;){var r=i[e?o:++a];if(n(s[r],r,s)===!1)break}return t}}var lo=no();const Dn=lo;function ao(e,t){return e&&Dn(e,t,xn)}function oo(e,t){return function(n,l){if(n==null)return n;if(!ct(n))return e(n,l);for(var a=n.length,s=t?a:-1,i=Object(n);(t?s--:++s<a)&&l(i[s],s,i)!==!1;);return n}}var so=oo(ao);coLine truncated
|
||||
* Checks if an event is supported in the current execution environment.
|
||||
*
|
||||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||||
* `reset`, `load`, `error`, and `select`.
|
||||
*
|
||||
* Borrows from Modernizr.
|
||||
*
|
||||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||||
* @param {?boolean} capture Check if the capture phase is supported.
|
||||
* @return {boolean} True if the event is supported.
|
||||
* @internal
|
||||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||||
*/const ko=function(e,t){if(e&&e.addEventListener){const n=function(l){const a=Eo(l);t&&Reflect.apply(t,this,[l,a])};e.addEventListener("wheel",n,{passive:!0})}},Po={beforeMount(e,t){ko(e,t.value)}},el={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Ht,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},tl={[dt]:e=>Ct(e)||Se(e)||ot(e),change:e=>Ct(e)||Se(e)||ot(e)},Ke=Symbol("checkboxGroupContextKey"),Ro=({model:e,isChecked:t})=>{const n=ce(Ke,void 0),l=M(()=>{var s,i;const o=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(i=n==null?void 0:n.min)==null?void 0:i.value;return!st(o)&&e.value.length>=o&&!t.value||!st(r)&&e.value.length<=r&&t.value});return{isDisabled:Ol(M(()=>(n==null?void 0:n.disabled.value)||l.value)),isLimitDisabled:l}},No=(e,{model:t,isLimitExceeded:n,hasOwnLabel:l,isDisabled:a,isLabeledByFormItem:s})=>{const i=ce(Ke,void 0),{formItem:o}=Ot(),{emit:r}=se();function u(h){var m,g;return h===e.trueLabel||h===!0?(m=e.trueLabel)!=null?m:!0:(g=e.falseLabel)!=null?g:!1}function c(h,m){r("change",u(h),m)}function f(h){if(n.value)return;const m=h.target;r("change",u(m.checked),h)}async function v(h){n.value||!l.value&&!a.value&&s.value&&(h.composedPath().some(w=>w.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Le(),c(t.value,h)))}const p=M(()=>(i==null?void 0:i.validateEvent)||e.validateEvent);return ie(()=>e.modelValue,()=>{p.value&&(o==null||o.validate("change").catch(h=>zt()))}),{handleChange:f,onClickRoot:v}},Lo=e=>{const t=P(!1),{emit:n}=se(),l=ce(Ke,void 0),a=M(()=>st(l)===!1),s=P(!1);return{model:M({get(){var o,r;return a.value?(o=l==null?void 0:l.modelValue)==null?void 0:o.value:(r=e.modelValue)!=null?r:t.value},set(o){var r,u;a.value&&_e(o)?(s.value=((r=l==null?void 0:l.max)==null?void 0:r.value)!==void 0&&o.length>(l==null?void 0:l.max.value),s.value===!1&&((u=l==null?void 0:l.changeEvent)==null||u.call(l,o))):(n(dt,o),t.value=o)}}),isGroup:a,isLimitExceeded:s}},Mo=(e,t,{model:n})=>{const l=ce(Ke,void 0),a=P(!1),s=M(()=>{const u=n.value;return ot(u)?u:_e(u)?wt(e.label)?u.map(tn).some(c=>Cn(c,e.label)):u.map(tn).includes(e.label):u!=null?u===e.trueLabel:!!u}),i=bt(M(()=>{var u;return(u=l==null?void 0:l.size)==null?void 0:u.value}),{prop:!0}),o=bt(M(()=>{var u;return(u=l==null?void 0:l.size)==null?void 0:u.value})),r=M(()=>!!(t.default||e.label));return{checkboxButtonSize:i,isChecked:s,isFocused:a,checkboxSize:o,hasOwnLabel:r}},$o=(e,{model:t})=>{function n(){_e(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},nl=(e,t)=>{const{formItem:n}=Ot(),{model:l,isGroup:a,isLimitExceeded:s}=Lo(e),{isFocused:i,isChecked:o,checkboxButtonSize:r,checkboxSize:u,hasOwnLabel:c}=Mo(e,t,{model:l}),{isDisabled:f}=Ro({model:l,isChecked:o}),{inputId:v,isLabeledByFormItem:p}=bn(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:h,onClickRoot:m}=No(e,{model:l,isLimitExceeded:s,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:p});return $o(e,{model:l}),{inputId:v,isLabeledByFormItem:p,isChecked:o,isDisabled:f,isFocused:i,checkboxButtonSize:r,checkboxSize:u,hasOwnLabel:c,model:l,handleChange:h,onClickRoot:m}},Fo=["tabindex","role","aria-checked"],Ao=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],To=["id","aria-hidden","disabled","value","name","tabindex"],Oo=U({name:"ElCheckbox"}),zo=U({...Oo,props:el,emits:tl,setup(e){const t=e,n=$n(),{inputId:l,isLabeledByFormItem:a,isChecked:s,isDisabled:i,isFocused:o,checkboxSize:r,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:v}=nl(t,n),p=Q("checkbox"),h=M(()=>[p.b(),p.m(r.value),p.is("disabled",i.value),p.is("bordered",t.border),p.is("checked",s.value)]),m=M(()=>[p.e("input"),p.is("disabled",i.value),p.is("checked",s.value),p.is("indeterminate",t.indeterminate),p.is("focus",o.value)]);return(g,w)=>(A(),oe(ht(!b(u)&&b(a)?"span":"label"),{class:W(b(h)),"aria-controls":g.indeterminate?g.controls:null,onClick:b(v)},{default:X(()=>[J("span",{class:W(b(m)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?Ne((A(),B("input",{key:0,id:b(l),"onUpdate:modelValue":w[0]||(w[0]=y=>qe(c)?c.value=y:null),class:W(b(p).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:b(i),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:w[1]||(w[1]=(...y)=>b(f)&&b(f)(...y)),onFocus:w[2]||(w[2]=y=>o.value=!0),onBlur:w[3]||(w[3]=y=>o.value=!1)},null,42,Ao)),[[rt,b(c)]]):Ne((A(),B("input",{key:1,id:b(l),"onUpdate:modelValue":w[4]||(w[4]=y=>qe(c)?c.value=y:null),clasLine truncated
|
||||
* escape-html
|
||||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||||
* Copyright(c) 2015 Andreas Lubbe
|
||||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||||
* MIT Licensed
|
||||
*/var As=/["'&<>]/,Ts=Os;function Os(e){var t=""+e,n=As.exec(t);if(!n)return t;var l,a="",s=0,i=0;for(s=n.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:l=""";break;case 38:l="&";break;case 39:l="'";break;case 60:l="<";break;case 62:l=">";break;default:continue}i!==s&&(a+=t.substring(i,s)),i=s+1,a+=l}return i!==s?a+t.substring(i,s):a}const zs=Ca(Ts),mt=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Ws=function(e,t,n,l,a){if(!t&&!l&&(!a||Array.isArray(a)&&!a.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const s=l?null:function(o,r){return a?(Array.isArray(a)||(a=[a]),a.map(u=>typeof u=="string"?yt(o,u):u(o,r,e))):(t!=="$key"&&wt(o)&&"$value"in o&&(o=o.$value),[wt(o)?yt(o,t):o])},i=function(o,r){if(l)return l(o.value,r.value);for(let u=0,c=o.key.length;u<c;u++){if(o.key[u]<r.key[u])return-1;if(o.key[u]>r.key[u])return 1}return 0};return e.map((o,r)=>({value:o,index:r,key:s?s(o,r):null})).sort((o,r)=>{let u=i(o,r);return u||(u=o.index-r.index),u*+n}).map(o=>o.value)},sl=function(e,t){let n=null;return e.columns.forEach(l=>{l.id===t&&(n=l)}),n},Hs=function(e,t){let n=null;for(let l=0;l<e.columns.length;l++){const a=e.columns[l];if(a.columnKey===t){n=a;break}}return n||Wl("ElTable",`No column matching with column-key: ${t}`),n},pn=function(e,t,n){const l=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return l?sl(e,l[0]):null},ae=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let l=e;for(const a of n)l=l[a];return`${l}`}else if(typeof t=="function")return t.call(null,e)},Ae=function(e,t){const n={};return(e||[]).forEach((l,a)=>{n[ae(l,t)]={row:l,index:a}}),n};function _s(e,t){const n={};let l;for(l in e)n[l]=e[l];for(l in t)if(je(t,l)){const a=t[l];typeof a<"u"&&(n[l]=a)}return n}function Gt(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function rl(e){return e===""||e!==void 0&&(e=Gt(e),Number.isNaN(e)&&(e=80)),e}function Bs(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Is(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...l)=>t(n(...l)))}function De(e,t,n){let l=!1;const a=e.indexOf(t),s=a!==-1,i=o=>{o==="add"?e.push(t):e.splice(a,1),l=!0,_e(t.children)&&t.children.forEach(r=>{De(e,r,n??!s)})};return ot(n)?n&&!s?i("add"):!n&&s&&i("remove"):i(s?"remove":"add"),l}function Vs(e,t,n="children",l="hasChildren"){const a=i=>!(Array.isArray(i)&&i.length);function s(i,o,r){t(i,o,r),o.forEach(u=>{if(u[l]){t(u,null,r+1);return}const c=u[n];a(c)||s(u,c,r+1)})}e.forEach(i=>{if(i[l]){t(i,null,0);return}const o=i[n];a(o)||s(i,o,0)})}let Pe;function Ks(e,t,n,l,a){a=qn({enterable:!0,showArrow:!0},a);const s=e==null?void 0:e.dataset.prefix,i=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function o(){const g=a.effect==="light",w=document.createElement("div");return w.className=[`${s}-popper`,g?"is-light":"is-dark",a.popperClass||""].join(" "),n=zs(n),w.innerHTML=n,w.style.zIndex=String(l()),e==null||e.appendChild(w),w}function r(){const g=document.createElement("div");return g.className=`${s}-popper__arrow`,g}function u(){c&&c.update()}Pe==null||Pe(),Pe=()=>{try{c&&c.destroy(),p&&(e==null||e.removeChild(p)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",v),i==null||i.removeEventListener("scroll",Pe),Pe=void 0}catch{}};let c=null,f=u,v=Pe;a.enterable&&({onOpen:f,onClose:v}=Ql({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:Pe}));const p=o();p.onmouseenter=f,p.onmouseleave=v;const h=[];if(a.offset&&h.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=p.appendChild(r());h.push({name:"arrow",options:{element:g,padding:10}})}const m=a.popperOptions||{};return c=Zl(t,p,{placement:a.placement||"top",strategy:"fixed",...m,modifiers:m.modifiers?h.concat(m.modifiers):h}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",v),i==null||i.addEventListener("scroll",Pe),c}function il(e){return e.children?po(e.children,il):[e]}function vn(e,t){return e+t.colSpan}const ul=(e,t,n,l)=>{let a=0,s=e;const i=n.states.columns.value;if(l){const r=il(l[e]);a=i.slice(0,i.indexOf(r[0])).reduce(vn,0),s=a+r.reduce(vn,0)-1}else a=e;let o;switch(t){case"left":s<n.states.fixedLeafColumnsLength.value&&(o="left");break;case"right":a>=i.length-n.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:s<n.states.fixedLeafColumnsLength.value?o="left":a>=i.length-n.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:a,after:s}:{}},Yt=(e,t,n,l,a,s=0)=>{const i=[],{direction:o,start:r,after:u}=ul(t,n,l,a);if(o){const c=o==="left";i.push(`${e}-fixed-column--${o}`),c&&u+s===l.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):!c&&r-s===l.states.columns.value.length-l.states.rightFixedLeafColumnsLength.value&&i.push("is-first-colLine truncated
|
||||
@@ -1,20 +0,0 @@
|
||||
import{ag as Jt,ah as dt,ai as mn,aj as bn,ak as Qt,al as We,am as yn,an as Tl,ao as Cn,ap as At,aq as wn,ar as gt,as as Sn,at as Ol,au as zl,av as Wl,aw as Hl,v as Tt,U as ct,i as Se,x as lt,o as at,z as _l,A as Ot,D as zt,y as mt,B as xn,u as X,_ as we,b as Me,d as Wt,w as Ht,F as _t,X as ot,I as Ne,k as Ye,m as En,ax as kn,j as Bl,ay as Il,az as Zt,aA as Kl,aB as Dl,ad as Bt,G as Vl,c as Ge,ac as ql,aC as Gl,e as Pn,p as Ul,W as Qe,r as bt,$ as jl,aD as en,ae as tn,aE as Yl,aF as Xl,s as nn,S as Jl,f as Ql}from"./request-7df3eafb.js";import"./el-tag-3de5cb5d.js";import{b as Nn,i as Rn,E as Zl,a as ea,d as st,c as Ln,C as ta}from"./el-select-3d4ad24c.js";import{i as ft,a as rt,b as na,g as la,S as Mn,k as $n,c as aa,d as oa,e as Fn,f as sa,h as ra,j as ia,l as ua,m as da,n as ca,u as fa,y as ha,E as pa}from"./el-popper-79e2cc61.js";import"./el-tooltip-4ed993c7.js";import{s as yt,i as ce,c as M,z as ie,n as Le,a5 as oe,h as P,X as He,g as Ct,aa as ln,d as q,Z as An,o as A,a as re,w as Z,D as ee,b as W,u as C,m as Re,F as B,x as Ue,ab as it,r as Oe,R as _e,J as Be,H as Y,G as ve,f as ht,e as $e,p as It,t as Tn,q as j,S as ut,a2 as ze,I as va,l as O,M as je,C as ye,ac as On,ad as zn,A as Xe,a8 as ga,a1 as Kt,v as an,ae as ma,B as ba,Q as ya}from"./index-c6e70cde.js";import{g as Ca}from"./_commonjsHelpers-de833af9.js";function Dt(e){return e}function wa(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Sa=800,xa=16,Ea=Date.now;function ka(e){var t=0,n=0;return function(){var l=Ea(),a=xa-(l-n);if(n=l,a>0){if(++t>=Sa)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Pa(e){return function(){return e}}var Na=Jt?function(e,t){return Jt(e,"toString",{configurable:!0,enumerable:!1,value:Pa(t),writable:!0})}:Dt;const Ra=Na;var La=ka(Ra);const Wn=La;var on=Math.max;function Hn(e,t,n){return t=on(t===void 0?e.length-1:t,0),function(){for(var l=arguments,a=-1,s=on(l.length-t,0),i=Array(s);++a<s;)i[a]=l[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=l[a];return o[t]=n(i),wa(e,this,o)}}function Ma(e,t){return Wn(Hn(e,t,Dt),e+"")}function $a(e,t,n){if(!dt(n))return!1;var l=typeof t;return(l=="number"?ft(n)&&mn(t,n.length):l=="string"&&t in n)?bn(n[t],e):!1}function Fa(e){return Ma(function(t,n){var l=-1,a=n.length,s=a>1?n[a-1]:void 0,i=a>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(a--,s):void 0,i&&$a(n[0],n[1],i)&&(s=a<3?void 0:s,a=1),t=Object(t);++l<a;){var o=n[l];o&&e(t,o,l,s)}return t})}var sn=Qt?Qt.isConcatSpreadable:void 0;function Aa(e){return We(e)||rt(e)||!!(sn&&e&&e[sn])}function Vt(e,t,n,l,a){var s=-1,i=e.length;for(n||(n=Aa),a||(a=[]);++s<i;){var o=e[s];t>0&&n(o)?t>1?Vt(o,t-1,n,l,a):na(a,o):l||(a[a.length]=o)}return a}function Ta(e){var t=e==null?0:e.length;return t?Vt(e,1):[]}function Oa(e){return Wn(Hn(e,void 0,Ta),e+"")}var za="[object Object]",Wa=Function.prototype,Ha=Object.prototype,_n=Wa.toString,_a=Ha.hasOwnProperty,Ba=_n.call(Object);function Ia(e){if(!yn(e)||Tl(e)!=za)return!1;var t=la(e);if(t===null)return!0;var n=_a.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&_n.call(n)==Ba}var Ka=1,Da=2;function Va(e,t,n,l){var a=n.length,s=a,i=!l;if(e==null)return!s;for(e=Object(e);a--;){var o=n[a];if(i&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<s;){o=n[a];var r=o[0],u=e[r],c=o[1];if(i&&o[2]){if(u===void 0&&!(r in e))return!1}else{var f=new Mn;if(l)var p=l(u,c,r,e,t,f);if(!(p===void 0?Nn(c,u,Ka|Da,l,f):p))return!1}}return!0}function Bn(e){return e===e&&!dt(e)}function qa(e){for(var t=$n(e),n=t.length;n--;){var l=t[n],a=e[l];t[n]=[l,a,Bn(a)]}return t}function In(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Ga(e){var t=qa(e);return t.length==1&&t[0][2]?In(t[0][0],t[0][1]):function(n){return n===e||Va(n,e,t)}}function Ua(e,t){return e!=null&&t in Object(e)}function ja(e,t,n){t=Cn(t,e);for(var l=-1,a=t.length,s=!1;++l<a;){var i=At(t[l]);if(!(s=e!=null&&n(e,i)))break;e=e[i]}return s||++l!=a?s:(a=e==null?0:e.length,!!a&&aa(a)&&mn(i,a)&&(We(e)||rt(e)))}function Kn(e,t){return e!=null&&ja(e,t,Ua)}var Ya=1,Xa=2;function Ja(e,t){return wn(e)&&Bn(t)?In(At(e),t):function(n){var l=gt(n,e);return l===void 0&&l===t?Kn(n,e):Nn(t,l,Ya|Xa)}}function Qa(e){return function(t){return t==null?void 0:t[e]}}function Za(e){return function(t){return Sn(t,e)}}function eo(e){return wn(e)?Qa(At(e)):Za(e)}function to(e){return typeof e=="function"?e:e==null?Dt:typeof e=="object"?We(e)?Ja(e[0],e[1]):Ga(e):eo(e)}function no(e){return function(t,n,l){for(var a=-1,s=Object(t),i=l(t),o=i.length;o--;){var r=i[e?o:++a];if(n(s[r],r,s)===!1)break}return t}}var lo=no();const Dn=lo;function ao(e,t){return e&&Dn(e,t,$n)}function oo(e,t){return function(n,l){if(n==null)return n;if(!ft(n))return e(n,l);for(var a=n.length,s=t?a:-1,i=Object(n);(t?s--:++s<a)&&l(i[s],s,i)!==!1;);return n}}var so=oo(ao);const ro=so;functioLine truncated
|
||||
* Checks if an event is supported in the current execution environment.
|
||||
*
|
||||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||||
* `reset`, `load`, `error`, and `select`.
|
||||
*
|
||||
* Borrows from Modernizr.
|
||||
*
|
||||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||||
* @param {?boolean} capture Check if the capture phase is supported.
|
||||
* @return {boolean} True if the event is supported.
|
||||
* @internal
|
||||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||||
*/const ko=function(e,t){if(e&&e.addEventListener){const n=function(l){const a=Eo(l);t&&Reflect.apply(t,this,[l,a])};e.addEventListener("wheel",n,{passive:!0})}},Po={beforeMount(e,t){ko(e,t.value)}},Zn={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:Tt,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},el={[ct]:e=>yt(e)||Se(e)||lt(e),change:e=>yt(e)||Se(e)||lt(e)},De=Symbol("checkboxGroupContextKey"),No=({model:e,isChecked:t})=>{const n=ce(De,void 0),l=M(()=>{var s,i;const o=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(i=n==null?void 0:n.min)==null?void 0:i.value;return!at(o)&&e.value.length>=o&&!t.value||!at(r)&&e.value.length<=r&&t.value});return{isDisabled:_l(M(()=>(n==null?void 0:n.disabled.value)||l.value)),isLimitDisabled:l}},Ro=(e,{model:t,isLimitExceeded:n,hasOwnLabel:l,isDisabled:a,isLabeledByFormItem:s})=>{const i=ce(De,void 0),{formItem:o}=Ot(),{emit:r}=oe();function u(h){var m,g;return h===e.trueLabel||h===!0?(m=e.trueLabel)!=null?m:!0:(g=e.falseLabel)!=null?g:!1}function c(h,m){r("change",u(h),m)}function f(h){if(n.value)return;const m=h.target;r("change",u(m.checked),h)}async function p(h){n.value||!l.value&&!a.value&&s.value&&(h.composedPath().some(S=>S.tagName==="LABEL")||(t.value=u([!1,e.falseLabel].includes(t.value)),await Le(),c(t.value,h)))}const v=M(()=>(i==null?void 0:i.validateEvent)||e.validateEvent);return ie(()=>e.modelValue,()=>{v.value&&(o==null||o.validate("change").catch(h=>zt()))}),{handleChange:f,onClickRoot:p}},Lo=e=>{const t=P(!1),{emit:n}=oe(),l=ce(De,void 0),a=M(()=>at(l)===!1),s=P(!1);return{model:M({get(){var o,r;return a.value?(o=l==null?void 0:l.modelValue)==null?void 0:o.value:(r=e.modelValue)!=null?r:t.value},set(o){var r,u;a.value&&He(o)?(s.value=((r=l==null?void 0:l.max)==null?void 0:r.value)!==void 0&&o.length>(l==null?void 0:l.max.value),s.value===!1&&((u=l==null?void 0:l.changeEvent)==null||u.call(l,o))):(n(ct,o),t.value=o)}}),isGroup:a,isLimitExceeded:s}},Mo=(e,t,{model:n})=>{const l=ce(De,void 0),a=P(!1),s=M(()=>{const u=n.value;return lt(u)?u:He(u)?Ct(e.label)?u.map(ln).some(c=>Rn(c,e.label)):u.map(ln).includes(e.label):u!=null?u===e.trueLabel:!!u}),i=mt(M(()=>{var u;return(u=l==null?void 0:l.size)==null?void 0:u.value}),{prop:!0}),o=mt(M(()=>{var u;return(u=l==null?void 0:l.size)==null?void 0:u.value})),r=M(()=>!!(t.default||e.label));return{checkboxButtonSize:i,isChecked:s,isFocused:a,checkboxSize:o,hasOwnLabel:r}},$o=(e,{model:t})=>{function n(){He(t.value)&&!t.value.includes(e.label)?t.value.push(e.label):t.value=e.trueLabel||!0}e.checked&&n()},tl=(e,t)=>{const{formItem:n}=Ot(),{model:l,isGroup:a,isLimitExceeded:s}=Lo(e),{isFocused:i,isChecked:o,checkboxButtonSize:r,checkboxSize:u,hasOwnLabel:c}=Mo(e,t,{model:l}),{isDisabled:f}=No({model:l,isChecked:o}),{inputId:p,isLabeledByFormItem:v}=xn(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:a}),{handleChange:h,onClickRoot:m}=Ro(e,{model:l,isLimitExceeded:s,hasOwnLabel:c,isDisabled:f,isLabeledByFormItem:v});return $o(e,{model:l}),{inputId:p,isLabeledByFormItem:v,isChecked:o,isDisabled:f,isFocused:i,checkboxButtonSize:r,checkboxSize:u,hasOwnLabel:c,model:l,handleChange:h,onClickRoot:m}},Fo=["tabindex","role","aria-checked"],Ao=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],To=["id","aria-hidden","disabled","value","name","tabindex"],Oo=q({name:"ElCheckbox"}),zo=q({...Oo,props:Zn,emits:el,setup(e){const t=e,n=An(),{inputId:l,isLabeledByFormItem:a,isChecked:s,isDisabled:i,isFocused:o,checkboxSize:r,hasOwnLabel:u,model:c,handleChange:f,onClickRoot:p}=tl(t,n),v=X("checkbox"),h=M(()=>[v.b(),v.m(r.value),v.is("disabled",i.value),v.is("bordered",t.border),v.is("checked",s.value)]),m=M(()=>[v.e("input"),v.is("disabled",i.value),v.is("checked",s.value),v.is("indeterminate",t.indeterminate),v.is("focus",o.value)]);return(g,S)=>(A(),re(ht(!C(u)&&C(a)?"span":"label"),{class:W(C(h)),"aria-controls":g.indeterminate?g.controls:null,onClick:C(p)},{default:Z(()=>[ee("span",{class:W(C(m)),tabindex:g.indeterminate?0:void 0,role:g.indeterminate?"checkbox":void 0,"aria-checked":g.indeterminate?"mixed":void 0},[g.trueLabel||g.falseLabel?Re((A(),B("input",{key:0,id:C(l),"onUpdate:modelValue":S[0]||(S[0]=y=>Ue(c)?c.value=y:null),class:W(C(v).e("original")),type:"checkbox","aria-hidden":g.indeterminate?"true":"false",name:g.name,tabindex:g.tabindex,disabled:C(i),"true-value":g.trueLabel,"false-value":g.falseLabel,onChange:S[1]||(S[1]=(...y)=>C(f)&&C(f)(...y)),onFocus:S[2]||(S[2]=y=>o.value=!0),onBlur:S[3]||(S[3]=y=>o.value=!1)},null,42,Ao)),[[it,C(c)]]):Re((A(),B("input",{key:1,id:C(l),"onUpdate:modelValue":S[4]||(S[4]=y=>Ue(c)?c.value=y:null),claLine truncated
|
||||
* escape-html
|
||||
* Copyright(c) 2012-2013 TJ Holowaychuk
|
||||
* Copyright(c) 2015 Andreas Lubbe
|
||||
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
||||
* MIT Licensed
|
||||
*/var As=/["'&<>]/,Ts=Os;function Os(e){var t=""+e,n=As.exec(t);if(!n)return t;var l,a="",s=0,i=0;for(s=n.index;s<t.length;s++){switch(t.charCodeAt(s)){case 34:l=""";break;case 38:l="&";break;case 39:l="'";break;case 60:l="<";break;case 62:l=">";break;default:continue}i!==s&&(a+=t.substring(i,s)),i=s+1,a+=l}return i!==s?a+t.substring(i,s):a}const zs=Ca(Ts),vt=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},Ws=function(e,t,n,l,a){if(!t&&!l&&(!a||Array.isArray(a)&&!a.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const s=l?null:function(o,r){return a?(Array.isArray(a)||(a=[a]),a.map(u=>typeof u=="string"?gt(o,u):u(o,r,e))):(t!=="$key"&&Ct(o)&&"$value"in o&&(o=o.$value),[Ct(o)?gt(o,t):o])},i=function(o,r){if(l)return l(o.value,r.value);for(let u=0,c=o.key.length;u<c;u++){if(o.key[u]<r.key[u])return-1;if(o.key[u]>r.key[u])return 1}return 0};return e.map((o,r)=>({value:o,index:r,key:s?s(o,r):null})).sort((o,r)=>{let u=i(o,r);return u||(u=o.index-r.index),u*+n}).map(o=>o.value)},ol=function(e,t){let n=null;return e.columns.forEach(l=>{l.id===t&&(n=l)}),n},Hs=function(e,t){let n=null;for(let l=0;l<e.columns.length;l++){const a=e.columns[l];if(a.columnKey===t){n=a;break}}return n||Vl("ElTable",`No column matching with column-key: ${t}`),n},hn=function(e,t,n){const l=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return l?ol(e,l[0]):null},ae=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let l=e;for(const a of n)l=l[a];return`${l}`}else if(typeof t=="function")return t.call(null,e)},Ae=function(e,t){const n={};return(e||[]).forEach((l,a)=>{n[ae(l,t)]={row:l,index:a}}),n};function _s(e,t){const n={};let l;for(l in e)n[l]=e[l];for(l in t)if(je(t,l)){const a=t[l];typeof a<"u"&&(n[l]=a)}return n}function Gt(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function sl(e){return e===""||e!==void 0&&(e=Gt(e),Number.isNaN(e)&&(e=80)),e}function Bs(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Is(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...l)=>t(n(...l)))}function Ve(e,t,n){let l=!1;const a=e.indexOf(t),s=a!==-1,i=o=>{o==="add"?e.push(t):e.splice(a,1),l=!0,He(t.children)&&t.children.forEach(r=>{Ve(e,r,n??!s)})};return lt(n)?n&&!s?i("add"):!n&&s&&i("remove"):i(s?"remove":"add"),l}function Ks(e,t,n="children",l="hasChildren"){const a=i=>!(Array.isArray(i)&&i.length);function s(i,o,r){t(i,o,r),o.forEach(u=>{if(u[l]){t(u,null,r+1);return}const c=u[n];a(c)||s(u,c,r+1)})}e.forEach(i=>{if(i[l]){t(i,null,0);return}const o=i[n];a(o)||s(i,o,0)})}let Pe;function Ds(e,t,n,l,a){a=qn({enterable:!0,showArrow:!0},a);const s=e==null?void 0:e.dataset.prefix,i=e==null?void 0:e.querySelector(`.${s}-scrollbar__wrap`);function o(){const g=a.effect==="light",S=document.createElement("div");return S.className=[`${s}-popper`,g?"is-light":"is-dark",a.popperClass||""].join(" "),n=zs(n),S.innerHTML=n,S.style.zIndex=String(l()),e==null||e.appendChild(S),S}function r(){const g=document.createElement("div");return g.className=`${s}-popper__arrow`,g}function u(){c&&c.update()}Pe==null||Pe(),Pe=()=>{try{c&&c.destroy(),v&&(e==null||e.removeChild(v)),t.removeEventListener("mouseenter",f),t.removeEventListener("mouseleave",p),i==null||i.removeEventListener("scroll",Pe),Pe=void 0}catch{}};let c=null,f=u,p=Pe;a.enterable&&({onOpen:f,onClose:p}=fa({showAfter:a.showAfter,hideAfter:a.hideAfter,open:u,close:Pe}));const v=o();v.onmouseenter=f,v.onmouseleave=p;const h=[];if(a.offset&&h.push({name:"offset",options:{offset:[0,a.offset]}}),a.showArrow){const g=v.appendChild(r());h.push({name:"arrow",options:{element:g,padding:10}})}const m=a.popperOptions||{};return c=ha(t,v,{placement:a.placement||"top",strategy:"fixed",...m,modifiers:m.modifiers?h.concat(m.modifiers):h}),t.addEventListener("mouseenter",f),t.addEventListener("mouseleave",p),i==null||i.addEventListener("scroll",Pe),c}function rl(e){return e.children?po(e.children,rl):[e]}function pn(e,t){return e+t.colSpan}const il=(e,t,n,l)=>{let a=0,s=e;const i=n.states.columns.value;if(l){const r=rl(l[e]);a=i.slice(0,i.indexOf(r[0])).reduce(pn,0),s=a+r.reduce(pn,0)-1}else a=e;let o;switch(t){case"left":s<n.states.fixedLeafColumnsLength.value&&(o="left");break;case"right":a>=i.length-n.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:s<n.states.fixedLeafColumnsLength.value?o="left":a>=i.length-n.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:a,after:s}:{}},Ut=(e,t,n,l,a,s=0)=>{const i=[],{direction:o,start:r,after:u}=il(t,n,l,a);if(o){const c=o==="left";i.push(`${e}-fixed-column--${o}`),c&&u+s===l.states.fixedLeafColumnsLength.value-1?i.push("is-last-column"):!c&&r-s===l.states.columns.value.length-l.states.rightFixedLeafColumnsLength.value&&i.push("is-first-colLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{E as qe,b as Te,u as Le,_ as ue,w as Me,d as H,m as K,i as be,a as Re,r as ne,c as Ae,g as U,e as ye,f as Ve,h as Ze,j as Oe,k as Ge,T as Xe,l as Ce,n as he,o as Je,p as Ee,q as We,t as Ye,s as xe}from"./request-7df3eafb.js";import{E as Qe,u as et,a as tt,b as nt,c as st,d as ot,e as lt,_ as at}from"./CardTools.vue_vue_type_script_setup_true_lang-ad9cf0a7.js";import{n as V,d as N,c as k,p as rt,o as h,a as S,w as f,r as de,b as v,u as w,e as se,f as _,i as it,g as oe,h as T,j as ce,k as ut,t as Ne,l as q,m as Z,q as c,v as te,T as Pe,s as le,x as dt,y as ct,z as ae,A as ze,B as ft,C as z,D as E,E as x,F as G,G as j,H as A,I as Q,J as X,K as je,L as _e,M as we,N as ke,O as mt,P as pt,Q as vt,R as gt,S as bt}from"./index-c6e70cde.js";import{o as Be}from"./aria-bc8e8b0f.js";import{i as yt}from"./el-tag-3de5cb5d.js";import"./_commonjsHelpers-de833af9.js";import"./vnode-1ab6d357.js";const re="_trap-focus-children",O=[],$e=e=>{if(O.length===0)return;const t=O[O.length-1][re];if(t.length>0&&e.code===qe.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],i=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),i&&!n&&(e.preventDefault(),t[0].focus())}},Ct={beforeMount(e){e[re]=Be(e),O.push(e),O.length<=1&&document.addEventListener("keydown",$e)},updated(e){V(()=>{e[re]=Be(e)})},unmounted(){O.shift(),O.length===0&&document.removeEventListener("keydown",$e)}},De=Symbol("rowContextKey"),ht=["start","center","end","space-around","space-between","space-evenly"],Et=["top","middle","bottom"],wt=Te({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:ht,default:"start"},align:{type:String,values:Et}}),kt=N({name:"ElRow"}),Bt=N({...kt,props:wt,setup(e){const t=e,n=Le("row"),o=k(()=>t.gutter);rt(De,{gutter:o});const i=k(()=>{const r={};return t.gutter&&(r.marginRight=r.marginLeft=`-${t.gutter/2}px`),r}),l=k(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(r,d)=>(h(),S(_(r.tag),{class:v(w(l)),style:se(w(i))},{default:f(()=>[de(r.$slots,"default")]),_:3},8,["class","style"]))}});var $t=ue(Bt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const St=Me($t),It=Te({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:H([Number,Object]),default:()=>K({})},sm:{type:H([Number,Object]),default:()=>K({})},md:{type:H([Number,Object]),default:()=>K({})},lg:{type:H([Number,Object]),default:()=>K({})},xl:{type:H([Number,Object]),default:()=>K({})}}),Tt=N({name:"ElCol"}),Lt=N({...Tt,props:It,setup(e){const t=e,{gutter:n}=it(De,{gutter:k(()=>0)}),o=Le("col"),i=k(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),l=k(()=>{const r=[];return["span","offset","pull","push"].forEach(s=>{const g=t[s];be(g)&&(s==="span"?r.push(o.b(`${t[s]}`)):g>0&&r.push(o.b(`${s}-${t[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{be(t[s])?r.push(o.b(`${s}-${t[s]}`)):oe(t[s])&&Object.entries(t[s]).forEach(([g,b])=>{r.push(g!=="span"?o.b(`${s}-${g}-${b}`):o.b(`${s}-${b}`))})}),n.value&&r.push(o.is("guttered")),[o.b(),r]});return(r,d)=>(h(),S(_(r.tag),{class:v(w(l)),style:se(w(i))},{default:f(()=>[de(r.$slots,"default")]),_:3},8,["class","style"]))}});var Mt=ue(Lt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const Rt=Me(Mt);function At(e){let t;const n=T(!1),o=ce({...e,originalPosition:"",originalOverflow:"",visible:!1});function i(a){o.text=a}function l(){const a=o.parent,u=b.ns;if(!a.vLoadingAddClassList){let y=a.getAttribute("loading-number");y=Number.parseInt(y)-1,y?a.setAttribute("loading-number",y.toString()):(ne(a,u.bm("parent","relative")),a.removeAttribute("loading-number")),ne(a,u.bm("parent","hidden"))}r(),g.unmount()}function r(){var a,u;(u=(a=b.$el)==null?void 0:a.parentNode)==null||u.removeChild(b.$el)}function d(){var a;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(p,400),o.visible=!1,(a=e.closed)==null||a.call(e))}function p(){if(!n.value)return;const a=o.parent;n.value=!1,a.vLoadingAddClassList=void 0,l()}const s=N({name:"ElLoading",setup(a,{expose:u}){const{ns:y,zIndex:C}=Re("loading");return u({ns:y,zIndex:C}),()=>{const B=o.spinner||o.svg,I=q("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...B?{innerHTML:B}:{}},[q("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),L=o.text?q("p",{class:y.b("text")},[o.text]):void 0;return q(Pe,{name:y.b("fade"),onAfterLeave:p},{default:f(()=>[Z(c("div",{style:{backgroundColor:o.background||""},class:[y.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[q("div",{class:y.b("spinner")},[I,L])]),[[te,o.visible]])])})}}}),g=ut(s),b=g.mount(document.createElement("div"));return{...Ne(o),setText:i,removeElLoadingChiLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{E as Te,a as qe,b as Le,u as be}from"./el-input-1fa85f7c.js";import{E as Ze,u as Ge,a as Xe,b as xe,c as We,d as Ye,e as Je,_ as Qe}from"./CardTools.vue_vue_type_script_setup_true_lang-f604ff71.js";import{n as V,E as et,b as Me,d as N,u as Re,c as $,p as tt,o as C,a as I,w as m,r as de,e as v,f as B,g as ne,h as D,_ as ce,i as Ae,j as H,m as K,k as nt,l as ye,q as oe,s as T,t as fe,v as st,x as Ve,y as Oe,z as U,A as Z,B as f,C as te,T as Ne,D as se,F as Pe,G as le,H as q,I as Ce,J as ot,K as lt,L as at,M as rt,N as he,O as re,P as je,Q as it,R as z,S as k,U as J,V as G,W as _,X as A,Y as Q,Z as X,$ as ze,a0 as _e,a1 as Ee,a2 as ut,a3 as we,a4 as ke,a5 as dt,a6 as ct,a7 as ft,a8 as mt,a9 as pt,aa as vt,ab as gt,ac as bt,ad as yt}from"./index-098ca3b6.js";import{o as Be}from"./aria-bc8e8b0f.js";import{i as Ct}from"./el-tag-3005f0d6.js";import"./_commonjsHelpers-de833af9.js";import"./vnode-1dbdb4af.js";const ie="_trap-focus-children",O=[],$e=e=>{if(O.length===0)return;const t=O[O.length-1][ie];if(t.length>0&&e.code===et.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,o=e.target===t[0],i=e.target===t[t.length-1];o&&n&&(e.preventDefault(),t[t.length-1].focus()),i&&!n&&(e.preventDefault(),t[0].focus())}},ht={beforeMount(e){e[ie]=Be(e),O.push(e),O.length<=1&&document.addEventListener("keydown",$e)},updated(e){V(()=>{e[ie]=Be(e)})},unmounted(){O.shift(),O.length===0&&document.removeEventListener("keydown",$e)}},De=Symbol("rowContextKey"),Et=["start","center","end","space-around","space-between","space-evenly"],wt=["top","middle","bottom"],kt=Me({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:Et,default:"start"},align:{type:String,values:wt}}),Bt=N({name:"ElRow"}),$t=N({...Bt,props:kt,setup(e){const t=e,n=Re("row"),o=$(()=>t.gutter);tt(De,{gutter:o});const i=$(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a}),l=$(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(a,d)=>(C(),I(D(a.tag),{class:v(B(l)),style:ne(B(i))},{default:m(()=>[de(a.$slots,"default")]),_:3},8,["class","style"]))}});var St=ce($t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const It=Ae(St),Tt=Me({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:H([Number,Object]),default:()=>K({})},sm:{type:H([Number,Object]),default:()=>K({})},md:{type:H([Number,Object]),default:()=>K({})},lg:{type:H([Number,Object]),default:()=>K({})},xl:{type:H([Number,Object]),default:()=>K({})}}),Lt=N({name:"ElCol"}),Mt=N({...Lt,props:Tt,setup(e){const t=e,{gutter:n}=nt(De,{gutter:$(()=>0)}),o=Re("col"),i=$(()=>{const a={};return n.value&&(a.paddingLeft=a.paddingRight=`${n.value/2}px`),a}),l=$(()=>{const a=[];return["span","offset","pull","push"].forEach(s=>{const g=t[s];ye(g)&&(s==="span"?a.push(o.b(`${t[s]}`)):g>0&&a.push(o.b(`${s}-${t[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{ye(t[s])?a.push(o.b(`${s}-${t[s]}`)):oe(t[s])&&Object.entries(t[s]).forEach(([g,b])=>{a.push(g!=="span"?o.b(`${s}-${g}-${b}`):o.b(`${s}-${b}`))})}),n.value&&a.push(o.is("guttered")),[o.b(),a]});return(a,d)=>(C(),I(D(a.tag),{class:v(B(l)),style:ne(B(i))},{default:m(()=>[de(a.$slots,"default")]),_:3},8,["class","style"]))}});var Rt=ce(Mt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const At=Ae(Rt);function Vt(e){let t;const n=T(!1),o=fe({...e,originalPosition:"",originalOverflow:"",visible:!1});function i(r){o.text=r}function l(){const r=o.parent,c=b.ns;if(!r.vLoadingAddClassList){let u=r.getAttribute("loading-number");u=Number.parseInt(u)-1,u?r.setAttribute("loading-number",u.toString()):(se(r,c.bm("parent","relative")),r.removeAttribute("loading-number")),se(r,c.bm("parent","hidden"))}a(),g.unmount()}function a(){var r,c;(c=(r=b.$el)==null?void 0:r.parentNode)==null||c.removeChild(b.$el)}function d(){var r;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=window.setTimeout(y,400),o.visible=!1,(r=e.closed)==null||r.call(e))}function y(){if(!n.value)return;const r=o.parent;n.value=!1,r.vLoadingAddClassList=void 0,l()}const s=N({name:"ElLoading",setup(r,{expose:c}){const{ns:u,zIndex:h}=Oe("loading");return c({ns:u,zIndex:h}),()=>{const E=o.spinner||o.svg,w=U("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...E?{innerHTML:E}:{}},[U("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),L=o.text?U("p",{class:u.b("text")},[o.text]):void 0;return U(Ne,{name:u.b("fade"),onAfterLeave:y},{default:m(()=>[Z(f("div",{style:{backgroundColor:o.background||""},class:[u.b("mask"),o.customClass,o.fullscreen?"is-fullscreen":""]},[U("div",{class:u.b("spinner")},[w,L])]),[[te,o.visible]])])})}}}),g=st(s),b=g.mount(document.createElement("div"));return{...Ve(o),setTeLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{b as V,v as me,U as ee,i as se,x as oe,C as Me,y as Ke,z as q,u as T,_ as z,n as He,A as We,B as Xe,D as ve,w as ye,F as be,G as te,H as ge,d as $,m as J,I as Je,k as N,J as Qe,K as Ye,L as Ze,M as et,N as tt,O as at,P as st,Q as ot,R as lt,s as he,S as nt,j as _e,f as rt}from"./request-7df3eafb.js";import{f as it,c as ke,d as Ee,e as ut,_ as dt}from"./CardTools.vue_vue_type_script_setup_true_lang-ad9cf0a7.js";import"./el-tag-3de5cb5d.js";import{i as pt,E as ct,a as ft}from"./el-select-3d4ad24c.js";import"./el-popper-79e2cc61.js";import{s as le,h as P,i as Se,c as B,d as x,o as g,F as R,D as w,m as $e,U as Re,u as e,x as we,b as h,r as D,E as O,n as xe,J as A,H as F,e as De,A as Ce,p as Fe,j as mt,t as vt,z as Q,V as C,a as U,w as E,R as yt,S as bt,I as Ue,G as S,q as _,W as gt,X as ht,Y,g as ne,Z as _t,B as kt,_ as Et,$ as re,a0 as ie,Q as ae,a1 as St}from"./index-c6e70cde.js";import{b as $t}from"./_baseClone-245914c0.js";import"./_commonjsHelpers-de833af9.js";import"./vnode-1ab6d357.js";var Rt=1,wt=4;function ue(l){return $t(l,Rt|wt)}const Le=V({size:me,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),xt=V({...Le,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Be={[ee]:l=>le(l)||se(l)||oe(l),[Me]:l=>le(l)||se(l)||oe(l)},Pe=Symbol("radioGroupKey"),Ve=(l,r)=>{const t=P(),o=Se(Pe,void 0),u=B(()=>!!o),c=B({get(){return u.value?o.modelValue:l.modelValue},set(p){u.value?o.changeEvent(p):r&&r(ee,p),t.value.checked=l.modelValue===l.label}}),f=Ke(B(()=>o==null?void 0:o.size)),y=q(B(()=>o==null?void 0:o.disabled)),m=P(!1),d=B(()=>y.value||u.value&&c.value!==l.label?-1:0);return{radioRef:t,isGroup:u,radioGroup:o,focus:m,size:f,disabled:y,tabIndex:d,modelValue:c}},Dt=["value","name","disabled"],Ct=x({name:"ElRadio"}),Ft=x({...Ct,props:xt,emits:Be,setup(l,{emit:r}){const t=l,o=T("radio"),{radioRef:u,radioGroup:c,focus:f,size:y,disabled:m,modelValue:d}=Ve(t,r);function p(){xe(()=>r("change",d.value))}return(n,a)=>{var i;return g(),R("label",{class:h([e(o).b(),e(o).is("disabled",e(m)),e(o).is("focus",e(f)),e(o).is("bordered",n.border),e(o).is("checked",e(d)===n.label),e(o).m(e(y))])},[w("span",{class:h([e(o).e("input"),e(o).is("disabled",e(m)),e(o).is("checked",e(d)===n.label)])},[$e(w("input",{ref_key:"radioRef",ref:u,"onUpdate:modelValue":a[0]||(a[0]=s=>we(d)?d.value=s:null),class:h(e(o).e("original")),value:n.label,name:n.name||((i=e(c))==null?void 0:i.name),disabled:e(m),type:"radio",onFocus:a[1]||(a[1]=s=>f.value=!0),onBlur:a[2]||(a[2]=s=>f.value=!1),onChange:p},null,42,Dt),[[Re,e(d)]]),w("span",{class:h(e(o).e("inner"))},null,2)],2),w("span",{class:h(e(o).e("label")),onKeydown:a[3]||(a[3]=O(()=>{},["stop"]))},[D(n.$slots,"default",{},()=>[A(F(n.label),1)])],34)],2)}}});var Ut=z(Ft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Lt=V({...Le,name:{type:String,default:""}}),Bt=["value","name","disabled"],Pt=x({name:"ElRadioButton"}),Vt=x({...Pt,props:Lt,setup(l){const r=l,t=T("radio"),{radioRef:o,focus:u,size:c,disabled:f,modelValue:y,radioGroup:m}=Ve(r),d=B(()=>({backgroundColor:(m==null?void 0:m.fill)||"",borderColor:(m==null?void 0:m.fill)||"",boxShadow:m!=null&&m.fill?`-1px 0 0 0 ${m.fill}`:"",color:(m==null?void 0:m.textColor)||""}));return(p,n)=>{var a;return g(),R("label",{class:h([e(t).b("button"),e(t).is("active",e(y)===p.label),e(t).is("disabled",e(f)),e(t).is("focus",e(u)),e(t).bm("button",e(c))])},[$e(w("input",{ref_key:"radioRef",ref:o,"onUpdate:modelValue":n[0]||(n[0]=i=>we(y)?y.value=i:null),class:h(e(t).be("button","original-radio")),value:p.label,type:"radio",name:p.name||((a=e(m))==null?void 0:a.name),disabled:e(f),onFocus:n[1]||(n[1]=i=>u.value=!0),onBlur:n[2]||(n[2]=i=>u.value=!1)},null,42,Bt),[[Re,e(y)]]),w("span",{class:h(e(t).be("button","inner")),style:De(e(y)===p.label?e(d):{}),onKeydown:n[3]||(n[3]=O(()=>{},["stop"]))},[D(p.$slots,"default",{},()=>[A(F(p.label),1)])],38)],2)}}});var Te=z(Vt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Tt=V({id:{type:String,default:void 0},size:me,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),Ot=Be,It=["id","aria-label","aria-labelledby"],Nt=x({name:"ElRadioGroup"}),zt=x({...Nt,props:Tt,emits:Ot,setup(l,{emit:r}){const t=l,o=T("radio"),u=He(),c=P(),{formItem:f}=We(),{inputId:y,isLabeledByFormItem:m}=Xe(t,{formItemContext:f}),d=n=>{r(ee,n),xe(()=>r("change",n))};Ce(()=>{const n=c.value.querySelectorAll("[type=radio]"),a=n[0];!Array.from(n).some(i=>i.checked)&&a&&(a.tabIndex=0)});const p=B(()=>t.name||u.value);return Fe(Pe,mt({...vt(t),changeEvent:d,name:p})),Q(()=>t.modelValue,()=>{t.validateEvent&&(f==null||f.validate("change").catch(n=>ve()))}),(n,a)=>(g(),R("diLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{U as te,C as Xe,c as Je,d as M,u as Ye,e as Qe,f as Ze,g as ye,t as ae,i as ge,b as he,E as et}from"./el-input-1fa85f7c.js";import{f as tt,c as be,d as _e,e as at,_ as st}from"./CardTools.vue_vue_type_script_setup_true_lang-f604ff71.js";import"./el-tag-3005f0d6.js";import{i as ot,E as lt,a as nt}from"./el-select-a6f71890.js";import"./el-popper-61ab67a6.js";import{b as V,ae as ke,G as le,l as ne,af as re,s as B,k as Se,c as P,d as C,u as T,o as g,V as E,S as R,A as Ee,ag as $e,f as e,J as we,e as b,r as U,Z as j,X as D,U as O,_ as N,n as Re,g as Ce,P as Ue,p as xe,t as rt,x as it,O as Y,i as De,ah as Fe,j as w,m as Q,ai as x,aj as ut,a as F,w as k,a9 as Le,aa as Pe,Y as Be,W as $,B as S,L as I,ak as dt,al as ct,am as pt,an as ft,ao as mt,ap as vt,aq as yt,ar as gt,as as Z,q as ie,at as ht,au as bt,av as _t,Q as kt,aw as St,ax as ue,ay as de,a7 as se,a8 as oe,az as Et,aA as $t,aB as A,ad as Ve}from"./index-098ca3b6.js";import{b as wt}from"./_baseClone-88b87991.js";import"./_commonjsHelpers-de833af9.js";import"./vnode-1dbdb4af.js";var Rt=1,Ct=4;function ce(l){return wt(l,Rt|Ct)}const Te=V({size:ke,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),Ut=V({...Te,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Oe={[te]:l=>le(l)||ne(l)||re(l),[Xe]:l=>le(l)||ne(l)||re(l)},ze=Symbol("radioGroupKey"),Ie=(l,i)=>{const a=B(),t=Se(ze,void 0),p=P(()=>!!t),u=P({get(){return p.value?t.modelValue:l.modelValue},set(y){p.value?t.changeEvent(y):i&&i(te,y),a.value.checked=l.modelValue===l.label}}),c=Je(P(()=>t==null?void 0:t.size)),h=M(P(()=>t==null?void 0:t.disabled)),m=B(!1),d=P(()=>h.value||p.value&&u.value!==l.label?-1:0);return{radioRef:a,isGroup:p,radioGroup:t,focus:m,size:c,disabled:h,tabIndex:d,modelValue:u}},xt=["value","name","disabled"],Dt=C({name:"ElRadio"}),Ft=C({...Dt,props:Ut,emits:Oe,setup(l,{emit:i}){const a=l,t=T("radio"),{radioRef:p,radioGroup:u,focus:c,size:h,disabled:m,modelValue:d}=Ie(a,i);function y(){Re(()=>i("change",d.value))}return(r,s)=>{var n;return g(),E("label",{class:b([e(t).b(),e(t).is("disabled",e(m)),e(t).is("focus",e(c)),e(t).is("bordered",r.border),e(t).is("checked",e(d)===r.label),e(t).m(e(h))])},[R("span",{class:b([e(t).e("input"),e(t).is("disabled",e(m)),e(t).is("checked",e(d)===r.label)])},[Ee(R("input",{ref_key:"radioRef",ref:p,"onUpdate:modelValue":s[0]||(s[0]=o=>we(d)?d.value=o:null),class:b(e(t).e("original")),value:r.label,name:r.name||((n=e(u))==null?void 0:n.name),disabled:e(m),type:"radio",onFocus:s[1]||(s[1]=o=>c.value=!0),onBlur:s[2]||(s[2]=o=>c.value=!1),onChange:y},null,42,xt),[[$e,e(d)]]),R("span",{class:b(e(t).e("inner"))},null,2)],2),R("span",{class:b(e(t).e("label")),onKeydown:s[3]||(s[3]=O(()=>{},["stop"]))},[U(r.$slots,"default",{},()=>[j(D(r.label),1)])],34)],2)}}});var Lt=N(Ft,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const Pt=V({...Te,name:{type:String,default:""}}),Bt=["value","name","disabled"],Vt=C({name:"ElRadioButton"}),Tt=C({...Vt,props:Pt,setup(l){const i=l,a=T("radio"),{radioRef:t,focus:p,size:u,disabled:c,modelValue:h,radioGroup:m}=Ie(i),d=P(()=>({backgroundColor:(m==null?void 0:m.fill)||"",borderColor:(m==null?void 0:m.fill)||"",boxShadow:m!=null&&m.fill?`-1px 0 0 0 ${m.fill}`:"",color:(m==null?void 0:m.textColor)||""}));return(y,r)=>{var s;return g(),E("label",{class:b([e(a).b("button"),e(a).is("active",e(h)===y.label),e(a).is("disabled",e(c)),e(a).is("focus",e(p)),e(a).bm("button",e(u))])},[Ee(R("input",{ref_key:"radioRef",ref:t,"onUpdate:modelValue":r[0]||(r[0]=n=>we(h)?h.value=n:null),class:b(e(a).be("button","original-radio")),value:y.label,type:"radio",name:y.name||((s=e(m))==null?void 0:s.name),disabled:e(c),onFocus:r[1]||(r[1]=n=>p.value=!0),onBlur:r[2]||(r[2]=n=>p.value=!1)},null,42,Bt),[[$e,e(h)]]),R("span",{class:b(e(a).be("button","inner")),style:Ce(e(h)===y.label?e(d):{}),onKeydown:r[3]||(r[3]=O(()=>{},["stop"]))},[U(y.$slots,"default",{},()=>[j(D(y.label),1)])],38)],2)}}});var Ne=N(Tt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const Ot=V({id:{type:String,default:void 0},size:ke,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),zt=Oe,It=["id","aria-label","aria-labelledby"],Nt=C({name:"ElRadioGroup"}),At=C({...Nt,props:Ot,emits:zt,setup(l,{emit:i}){const a=l,t=T("radio"),p=Ye(),u=B(),{formItem:c}=Qe(),{inputId:h,isLabeledByFormItem:m}=Ze(a,{formItemContext:c}),d=r=>{i(te,r),Re(()=>i("change",r))};Ue(()=>{const r=u.value.querySelectorAll("[type=radio]"),s=r[0];!Array.from(r).some(n=>n.checked)&&s&&(s.tabIndex=0)});const y=P(()=>a.name||p.value);return xe(ze,rt({...it(a),changeEvent:d,name:y})),Y(()=>a.modelValue,()=>{a.validateEvent&&(c==null||c.validate("chanLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
.left-menu{margin-bottom:1rem;cursor:pointer;text-align:center;font-weight:700;font-size:1rem;letter-spacing:.4rem}
|
||||
@@ -0,0 +1 @@
|
||||
import{b as x,E as U}from"./el-input-1fa85f7c.js";import{E as k,a as S}from"./el-form-item-e5c627c6.js";import"./el-tag-3005f0d6.js";import{a as z,E as w}from"./el-select-a6f71890.js";import"./el-popper-61ab67a6.js";import{d as E,a8 as C,s as B,a as c,w as o,ad as g,o as V,B as e,f as s,S as i,X as m,V as D,W as M,Z as N,aB as v}from"./index-098ca3b6.js";import"./_baseClone-88b87991.js";const I={style:{"margin-left":"0.4rem"}},h={style:{"margin-left":"0.4rem"}},A={key:0},F={style:{display:"flex",height:"38px"}},K={style:{"margin-right":"0.4rem"}},T={style:{width:"200px","margin-left":"0.4rem"}},q={style:{display:"flex",height:"38px"}},O={style:{width:"3rem","margin-right":"0.4rem"}},W={style:{width:"200px","margin-left":"0.4rem"}},X={style:{display:"flex",height:"38px"}},Z={style:{"margin-right":"0.4rem"}},j={style:{width:"200px","margin-left":"0.4rem"}},G={style:{display:"flex",height:"38px"}},H={style:{width:"3rem","margin-right":"0.4rem"}},J={style:{width:"200px","margin-left":"0.4rem"}},te=E({__name:"SettingView",setup(L){const{t:n}=C(),l=B({name:"",description:"",file_storage:"",expireStyle:[],admin_token:"",keywords:"",notify_title:"",notify_content:"",openUpload:1,uploadSize:1,uploadMinute:1,max_save_seconds:0,s3_access_key_id:"",background:"",page_explain:"",s3_secret_access_key:"",aws_session_token:"",s3_signature_version:"",s3_region_name:"",s3_bucket_name:"",s3_endpoint_url:"",s3_hostname:"",uploadCount:1,errorMinute:1,errorCount:1});(()=>{g({url:"/admin/config/get",method:"get"}).then(p=>{l.value=p.detail})})();const f=()=>{g({url:"/admin/config/update",method:"patch",data:l.value}).then(p=>{p.code==200?v.success(n("admin.settings.saveSuccess")):v.error(p.message)})};return(p,a)=>{const d=x,u=S,r=z,_=w,b=U,y=k;return V(),c(y,null,{default:o(()=>[e(u,{size:"large",label:s(n)("admin.settings.name")},{default:o(()=>[e(d,{modelValue:l.value.name,"onUpdate:modelValue":a[0]||(a[0]=t=>l.value.name=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(u,{size:"large",label:s(n)("admin.settings.description")},{default:o(()=>[e(d,{modelValue:l.value.description,"onUpdate:modelValue":a[1]||(a[1]=t=>l.value.description=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(u,{size:"large",label:s(n)("admin.settings.keywords"),style:{"letter-spacing":"0.3rem"}},{default:o(()=>[e(d,{modelValue:l.value.keywords,"onUpdate:modelValue":a[2]||(a[2]=t=>l.value.keywords=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(u,{size:"large",label:s(n)("admin.settings.notify_title")},{default:o(()=>[e(d,{modelValue:l.value.notify_title,"onUpdate:modelValue":a[3]||(a[3]=t=>l.value.notify_title=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(u,{size:"large",label:s(n)("admin.settings.notify_content")},{default:o(()=>[e(d,{modelValue:l.value.notify_content,"onUpdate:modelValue":a[4]||(a[4]=t=>l.value.notify_content=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(u,{size:"large",label:s(n)("admin.settings.background")},{default:o(()=>[e(d,{modelValue:l.value.background,"onUpdate:modelValue":a[5]||(a[5]=t=>l.value.background=t),placeholder:"url"},null,8,["modelValue"])]),_:1},8,["label"]),e(u,{size:"large",label:s(n)("admin.settings.explain")},{default:o(()=>[e(d,{type:"textarea",modelValue:l.value.page_explain,"onUpdate:modelValue":a[6]||(a[6]=t=>l.value.page_explain=t),placeholder:"explain"},null,8,["modelValue"])]),_:1},8,["label"]),e(u,{size:"large",label:s(n)("admin.settings.admin_token")},{default:o(()=>[e(d,{type:"password",modelValue:l.value.admin_token,"onUpdate:modelValue":a[7]||(a[7]=t=>l.value.admin_token=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(u,{size:"large",label:s(n)("admin.settings.uploadSize")},{append:o(()=>[]),default:o(()=>[e(d,{type:"number",modelValue:l.value.uploadSize,"onUpdate:modelValue":a[8]||(a[8]=t=>l.value.uploadSize=t)},null,8,["modelValue"]),i("small",null,"Bytes:"+m(s(n)("admin.settings.uploadSizeNote")),1)]),_:1},8,["label"]),e(u,{size:"large",label:s(n)("admin.settings.max_save_seconds")},{default:o(()=>[e(d,{type:"number",modelValue:l.value.max_save_seconds,"onUpdate:modelValue":a[9]||(a[9]=t=>l.value.max_save_seconds=t)},null,8,["modelValue"]),i("small",null,"Seconds:"+m(s(n)("admin.settings.maxSaveSecondsNote")),1)]),_:1},8,["label"]),e(u,{size:"large",label:s(n)("admin.settings.expireStyle")},{default:o(()=>[e(_,{modelValue:l.value.expireStyle,"onUpdate:modelValue":a[10]||(a[10]=t=>l.value.expireStyle=t),multiple:"",style:{width:"100%"}},{default:o(()=>[e(r,{label:s(n)("send.expireData.day"),value:"day"},null,8,["label"]),e(r,{label:s(n)("send.expireData.hour"),value:"hour"},null,8,["label"]),e(r,{label:s(n)("send.expireData.minute"),value:"minute"},null,8,["label"]),e(r,{label:s(n)("send.expireData.forever"),value:"forever"},null,8,["label"]),e(r,{label:s(n)("send.expireData.count"),value:"count"},null,8,["label"])]),_:1},8,["modelValue"])]),_:1},8,["label"]),e(u,{size:"large",label:s(n)("admin.settings.openUpload.title")},{default:o(()=>[e(_,{modelValue:l.value.openUpload,"onUpdate:moLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{s as g,S as f,j as c,f as U}from"./request-7df3eafb.js";import{E as w,a as z}from"./el-form-item-05e3aa6e.js";import"./el-tag-3de5cb5d.js";import{E as S,a as x}from"./el-select-3d4ad24c.js";import"./el-popper-79e2cc61.js";import{d as E,Q as C,h,a as B,w as o,o as V,q as e,u as n,J as b,D as i,H as m,F as M,G as N}from"./index-c6e70cde.js";import"./_baseClone-245914c0.js";const D={style:{"margin-left":"0.4rem"}},I={style:{"margin-left":"0.4rem"}},A={key:0},F={style:{display:"flex",height:"38px"}},q={style:{"margin-right":"0.4rem"}},K={style:{width:"200px","margin-left":"0.4rem"}},T={style:{display:"flex",height:"38px"}},j={style:{width:"3rem","margin-right":"0.4rem"}},G={style:{width:"200px","margin-left":"0.4rem"}},H={style:{display:"flex",height:"38px"}},J={style:{"margin-right":"0.4rem"}},O={style:{width:"200px","margin-left":"0.4rem"}},Q={style:{display:"flex",height:"38px"}},L={style:{width:"3rem","margin-right":"0.4rem"}},P={style:{width:"200px","margin-left":"0.4rem"}},te=E({__name:"SettingView",setup(R){const{t:s}=C(),l=h({name:"",description:"",file_storage:"",admin_token:"",keywords:"",openUpload:1,uploadSize:1,uploadMinute:1,s3_access_key_id:"",background:"",s3_secret_access_key:"",aws_session_token:"",s3_bucket_name:"",s3_endpoint_url:"",uploadCount:1,errorMinute:1,errorCount:1});(()=>{g({url:"/admin/config/get",method:"get"}).then(r=>{l.value=r.detail})})();const v=()=>{g({url:"/admin/config/update",method:"patch",data:l.value}).then(r=>{r.code==200?f.success(s("admin.settings.saveSuccess")):f.error(r.message)})};return(r,a)=>{const u=c,d=z,p=S,_=x,y=U,k=w;return V(),B(k,null,{default:o(()=>[e(d,{size:"large",label:n(s)("admin.settings.name")},{default:o(()=>[e(u,{modelValue:l.value.name,"onUpdate:modelValue":a[0]||(a[0]=t=>l.value.name=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.description")},{default:o(()=>[e(u,{modelValue:l.value.description,"onUpdate:modelValue":a[1]||(a[1]=t=>l.value.description=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.keywords"),style:{"letter-spacing":"0.3rem"}},{default:o(()=>[e(u,{modelValue:l.value.keywords,"onUpdate:modelValue":a[2]||(a[2]=t=>l.value.keywords=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.background")},{default:o(()=>[e(u,{modelValue:l.value.background,"onUpdate:modelValue":a[3]||(a[3]=t=>l.value.background=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.admin_token")},{default:o(()=>[e(u,{type:"password",modelValue:l.value.admin_token,"onUpdate:modelValue":a[4]||(a[4]=t=>l.value.admin_token=t)},null,8,["modelValue"])]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.uploadSize")},{append:o(()=>[b("Bytes")]),default:o(()=>[e(u,{type:"number",modelValue:l.value.uploadSize,"onUpdate:modelValue":a[5]||(a[5]=t=>l.value.uploadSize=t)},null,8,["modelValue"]),i("small",null,m(n(s)("admin.settings.uploadSizeNote")),1)]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.openUpload.title")},{default:o(()=>[e(_,{modelValue:l.value.openUpload,"onUpdate:modelValue":a[6]||(a[6]=t=>l.value.openUpload=t)},{default:o(()=>[e(p,{label:n(s)("admin.settings.openUpload.open"),value:1},null,8,["label"]),e(p,{label:n(s)("admin.settings.openUpload.close"),value:0},null,8,["label"])]),_:1},8,["modelValue"]),i("small",D,m(n(s)("admin.settings.openUpload.note")),1)]),_:1},8,["label"]),e(d,{size:"large",label:n(s)("admin.settings.file_storage.title")},{default:o(()=>[e(_,{modelValue:l.value.file_storage,"onUpdate:modelValue":a[7]||(a[7]=t=>l.value.file_storage=t)},{default:o(()=>[e(p,{label:n(s)("admin.settings.file_storage.local"),value:"local"},null,8,["label"]),e(p,{label:n(s)("admin.settings.file_storage.s3"),value:"s3"},null,8,["label"])]),_:1},8,["modelValue"]),i("small",I,m(n(s)("admin.settings.file_storage.note")),1)]),_:1},8,["label"]),l.value.file_storage==="s3"?(V(),M("div",A,[e(d,{size:"large",label:"S3 AccessKeyId"},{default:o(()=>[e(u,{modelValue:l.value.s3_access_key_id,"onUpdate:modelValue":a[8]||(a[8]=t=>l.value.s3_access_key_id=t)},null,8,["modelValue"])]),_:1}),e(d,{size:"large",label:"S3 SecretAccessKey"},{default:o(()=>[e(u,{modelValue:l.value.s3_secret_access_key,"onUpdate:modelValue":a[9]||(a[9]=t=>l.value.s3_secret_access_key=t)},null,8,["modelValue"])]),_:1}),e(d,{size:"large",label:"S3 BucketName"},{default:o(()=>[e(u,{modelValue:l.value.s3_bucket_name,"onUpdate:modelValue":a[10]||(a[10]=t=>l.value.s3_bucket_name=t)},null,8,["modelValue"])]),_:1}),e(d,{size:"large",label:"S3 EndpointUrl"},{default:o(()=>[e(u,{modelValue:l.value.s3_endpoint_url,"onUpdate:modelValue":a[11]||(a[11]=t=>l.value.s3_endpoint_url=t)},null,8,["modelValue"])]),_:1}),e(d,{size:"large",label:"Aws Session Token"},{default:o(()=>[e(u,{modelValue:l.value.aws_session_token,"onUpdate:modelValue":a[12]||(a[12]=t=>l.value.aws_session_token=t)},null,8,["modelValue"])]),Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
.left-menu{margin-bottom:1rem;cursor:pointer;text-align:center;font-weight:700;font-size:1rem;letter-spacing:.4rem}small,.el-form-item__content{color:#909399;margin-left:.4rem}
|
||||
@@ -1 +0,0 @@
|
||||
import{d as T,k as F,e as j,o as C,s as _,b as N,g as v,p as K,q as E,m as R,r as p,t as u,v as B,j as q,f as J,l as W,n as Y,S as H,w as Q}from"./el-popper-79e2cc61.js";import{ak as m,am as M,ah as V,al as X,aJ as Z}from"./request-7df3eafb.js";function k(t,e){for(var n=-1,o=t==null?0:t.length;++n<o&&e(t[n],n,t)!==!1;);return t}function z(t,e){return t&&T(e,F(e),t)}function tt(t,e){return t&&T(e,j(e),t)}function et(t,e){return T(t,C(t),e)}var rt=Object.getOwnPropertySymbols,nt=rt?function(t){for(var e=[];t;)N(e,C(t)),t=v(t);return e}:_;const x=nt;function at(t,e){return T(t,x(t),e)}function ot(t){return K(t,j,x)}var st=Object.prototype,ct=st.hasOwnProperty;function it(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&ct.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function ft(t,e){var n=e?E(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var gt=/\w*$/;function bt(t){var e=new t.constructor(t.source,gt.exec(t));return e.lastIndex=t.lastIndex,e}var w=m?m.prototype:void 0,I=w?w.valueOf:void 0;function yt(t){return I?Object(I.call(t)):{}}var ut="[object Boolean]",Tt="[object Date]",lt="[object Map]",jt="[object Number]",pt="[object RegExp]",At="[object Set]",dt="[object String]",$t="[object Symbol]",St="[object ArrayBuffer]",mt="[object DataView]",wt="[object Float32Array]",It="[object Float64Array]",Ot="[object Int8Array]",ht="[object Int16Array]",Ft="[object Int32Array]",Ct="[object Uint8Array]",Et="[object Uint8ClampedArray]",Bt="[object Uint16Array]",Mt="[object Uint32Array]";function xt(t,e,n){var o=t.constructor;switch(e){case St:return E(t);case ut:case Tt:return new o(+t);case mt:return ft(t,n);case wt:case It:case Ot:case ht:case Ft:case Ct:case Et:case Bt:case Mt:return R(t,n);case lt:return new o;case jt:case dt:return new o(t);case pt:return bt(t);case At:return new o;case $t:return yt(t)}}var Lt="[object Map]";function Ut(t){return M(t)&&p(t)==Lt}var O=u&&u.isMap,Pt=O?B(O):Ut;const Dt=Pt;var Gt="[object Set]";function _t(t){return M(t)&&p(t)==Gt}var h=u&&u.isSet,Nt=h?B(h):_t;const vt=Nt;var Kt=1,Rt=2,qt=4,L="[object Arguments]",Jt="[object Array]",Wt="[object Boolean]",Yt="[object Date]",Ht="[object Error]",U="[object Function]",Qt="[object GeneratorFunction]",Vt="[object Map]",Xt="[object Number]",P="[object Object]",Zt="[object RegExp]",kt="[object Set]",zt="[object String]",te="[object Symbol]",ee="[object WeakMap]",re="[object ArrayBuffer]",ne="[object DataView]",ae="[object Float32Array]",oe="[object Float64Array]",se="[object Int8Array]",ce="[object Int16Array]",ie="[object Int32Array]",fe="[object Uint8Array]",ge="[object Uint8ClampedArray]",be="[object Uint16Array]",ye="[object Uint32Array]",r={};r[L]=r[Jt]=r[re]=r[ne]=r[Wt]=r[Yt]=r[ae]=r[oe]=r[se]=r[ce]=r[ie]=r[Vt]=r[Xt]=r[P]=r[Zt]=r[kt]=r[zt]=r[te]=r[fe]=r[ge]=r[be]=r[ye]=!0;r[Ht]=r[U]=r[ee]=!1;function l(t,e,n,o,g,s){var a,b=e&Kt,y=e&Rt,D=e&qt;if(n&&(a=g?n(t,o,g,s):n(t)),a!==void 0)return a;if(!V(t))return t;var A=X(t);if(A){if(a=it(t),!b)return q(t,a)}else{var f=p(t),d=f==U||f==Qt;if(J(t))return W(t,b);if(f==P||f==L||d&&!g){if(a=y||d?{}:Y(t),!b)return y?at(t,tt(a,t)):et(t,z(a,t))}else{if(!r[f])return g?t:{};a=xt(t,f,b)}}s||(s=new H);var $=s.get(t);if($)return $;s.set(t,a),vt(t)?t.forEach(function(c){a.add(l(c,e,n,c,t,s))}):Dt(t)&&t.forEach(function(c,i){a.set(i,l(c,e,n,i,t,s))});var G=D?y?ot:Q:y?j:F,S=A?void 0:G(t);return k(S||t,function(c,i){S&&(i=c,c=t[i]),Z(a,i,l(c,e,n,i,t,s))}),a}export{l as b};
|
||||
@@ -0,0 +1 @@
|
||||
import{d as T,k as F,e as j,o as C,s as _,b as N,g as v,p as K,q as E,m as R,r as p,t as u,v as x,j as q,f as W,l as Y,n as H,S as J,w as Q}from"./el-popper-61ab67a6.js";import{b5 as m,b7 as B,b2 as V,b6 as X,bx as Z}from"./index-098ca3b6.js";function z(t,e){for(var n=-1,o=t==null?0:t.length;++n<o&&e(t[n],n,t)!==!1;);return t}function k(t,e){return t&&T(e,F(e),t)}function tt(t,e){return t&&T(e,j(e),t)}function et(t,e){return T(t,C(t),e)}var rt=Object.getOwnPropertySymbols,nt=rt?function(t){for(var e=[];t;)N(e,C(t)),t=v(t);return e}:_;const M=nt;function at(t,e){return T(t,M(t),e)}function ot(t){return K(t,j,M)}var st=Object.prototype,ct=st.hasOwnProperty;function it(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&ct.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function bt(t,e){var n=e?E(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var ft=/\w*$/;function gt(t){var e=new t.constructor(t.source,ft.exec(t));return e.lastIndex=t.lastIndex,e}var w=m?m.prototype:void 0,I=w?w.valueOf:void 0;function yt(t){return I?Object(I.call(t)):{}}var ut="[object Boolean]",Tt="[object Date]",lt="[object Map]",jt="[object Number]",pt="[object RegExp]",At="[object Set]",dt="[object String]",$t="[object Symbol]",St="[object ArrayBuffer]",mt="[object DataView]",wt="[object Float32Array]",It="[object Float64Array]",Ot="[object Int8Array]",ht="[object Int16Array]",Ft="[object Int32Array]",Ct="[object Uint8Array]",Et="[object Uint8ClampedArray]",xt="[object Uint16Array]",Bt="[object Uint32Array]";function Mt(t,e,n){var o=t.constructor;switch(e){case St:return E(t);case ut:case Tt:return new o(+t);case mt:return bt(t,n);case wt:case It:case Ot:case ht:case Ft:case Ct:case Et:case xt:case Bt:return R(t,n);case lt:return new o;case jt:case dt:return new o(t);case pt:return gt(t);case At:return new o;case $t:return yt(t)}}var Lt="[object Map]";function Ut(t){return B(t)&&p(t)==Lt}var O=u&&u.isMap,Pt=O?x(O):Ut;const Dt=Pt;var Gt="[object Set]";function _t(t){return B(t)&&p(t)==Gt}var h=u&&u.isSet,Nt=h?x(h):_t;const vt=Nt;var Kt=1,Rt=2,qt=4,L="[object Arguments]",Wt="[object Array]",Yt="[object Boolean]",Ht="[object Date]",Jt="[object Error]",U="[object Function]",Qt="[object GeneratorFunction]",Vt="[object Map]",Xt="[object Number]",P="[object Object]",Zt="[object RegExp]",zt="[object Set]",kt="[object String]",te="[object Symbol]",ee="[object WeakMap]",re="[object ArrayBuffer]",ne="[object DataView]",ae="[object Float32Array]",oe="[object Float64Array]",se="[object Int8Array]",ce="[object Int16Array]",ie="[object Int32Array]",be="[object Uint8Array]",fe="[object Uint8ClampedArray]",ge="[object Uint16Array]",ye="[object Uint32Array]",r={};r[L]=r[Wt]=r[re]=r[ne]=r[Yt]=r[Ht]=r[ae]=r[oe]=r[se]=r[ce]=r[ie]=r[Vt]=r[Xt]=r[P]=r[Zt]=r[zt]=r[kt]=r[te]=r[be]=r[fe]=r[ge]=r[ye]=!0;r[Jt]=r[U]=r[ee]=!1;function l(t,e,n,o,f,s){var a,g=e&Kt,y=e&Rt,D=e&qt;if(n&&(a=f?n(t,o,f,s):n(t)),a!==void 0)return a;if(!V(t))return t;var A=X(t);if(A){if(a=it(t),!g)return q(t,a)}else{var b=p(t),d=b==U||b==Qt;if(W(t))return Y(t,g);if(b==P||b==L||d&&!f){if(a=y||d?{}:H(t),!g)return y?at(t,tt(a,t)):et(t,k(a,t))}else{if(!r[b])return f?t:{};a=Mt(t,b,g)}}s||(s=new J);var $=s.get(t);if($)return $;s.set(t,a),vt(t)?t.forEach(function(c){a.add(l(c,e,n,c,t,s))}):Dt(t)&&t.forEach(function(c,i){a.set(i,l(c,e,n,i,t,s))});var G=D?y?ot:Q:y?j:F,S=A?void 0:G(t);return z(S||t,function(c,i){S&&(i=c,c=t[i]),Z(a,i,l(c,e,n,i,t,s))}),a}export{l as b};
|
||||
@@ -1,12 +0,0 @@
|
||||
import{al as it,b as we,ax as $e,d as ue,x as Be,y as Te,u as Fe,D as at,aG as qe,_ as Ce,aH as de,G as st,ae as ot,n as ft,aI as lt,V as _e,aE as oe,w as ut,F as dt}from"./request-7df3eafb.js";import{X as ct,s as ce,h as $,c as A,d as Y,z as te,p as De,j as ze,t as Ge,o as pe,F as Ue,r as Q,b as U,u as O,N as Je,i as re,A as Ze,B as Ke,a8 as pt,q as ne,R as vt,n as Ye,Z as mt,w as fe,a as ht,f as gt,e as Ae,J as yt,H as Pe,G as Se,D as je,W as bt}from"./index-c6e70cde.js";import{b as wt}from"./_baseClone-245914c0.js";function ve(){if(!arguments.length)return[];var i=arguments[0];return it(i)?i:[i]}var Ft=4;function Re(i){return wt(i,Ft)}const qt=we({size:{type:String,values:$e},disabled:Boolean}),xt=we({...qt,model:Object,rules:{type:ue(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),Ot={validate:(i,e,t)=>(ct(i)||ce(i))&&Be(e)&&ce(t)};function Et(){const i=$([]),e=A(()=>{if(!i.value.length)return"0";const s=Math.max(...i.value);return s?`${s}px`:""});function t(s){const a=i.value.indexOf(s);return a===-1&&e.value,a}function n(s,a){if(s&&a){const o=t(a);i.value.splice(o,1,s)}else s&&i.value.push(s)}function r(s){const a=t(s);a>-1&&i.value.splice(a,1)}return{autoLabelWidth:e,registerLabelWidth:n,deregisterLabelWidth:r}}const H=(i,e)=>{const t=ve(e);return t.length>0?i.filter(n=>n.prop&&t.includes(n.prop)):i},_t="ElForm",At=Y({name:_t}),Pt=Y({...At,props:xt,emits:Ot,setup(i,{expose:e,emit:t}){const n=i,r=[],s=Te(),a=Fe("form"),o=A(()=>{const{labelPosition:v,inline:f}=n;return[a.b(),a.m(s.value||"default"),{[a.m(`label-${v}`)]:v,[a.m("inline")]:f}]}),u=v=>{r.push(v)},b=v=>{v.prop&&r.splice(r.indexOf(v),1)},p=(v=[])=>{n.model&&H(r,v).forEach(f=>f.resetField())},g=(v=[])=>{H(r,v).forEach(f=>f.clearValidate())},w=A(()=>!!n.model),E=v=>{if(r.length===0)return[];const f=H(r,v);return f.length?f:[]},_=async v=>y(void 0,v),d=async(v=[])=>{if(!w.value)return!1;const f=E(v);if(f.length===0)return!0;let h={};for(const q of f)try{await q.validate("")}catch(x){h={...h,...x}}return Object.keys(h).length===0?!0:Promise.reject(h)},y=async(v=[],f)=>{const h=!Je(f);try{const q=await d(v);return q===!0&&(f==null||f(q)),q}catch(q){if(q instanceof Error)throw q;const x=q;return n.scrollToError&&l(Object.keys(x)[0]),f==null||f(!1,x),h&&Promise.reject(x)}},l=v=>{var f;const h=H(r,v)[0];h&&((f=h.$el)==null||f.scrollIntoView(n.scrollIntoViewOptions))};return te(()=>n.rules,()=>{n.validateOnRuleChange&&_().catch(v=>at())},{deep:!0}),De(qe,ze({...Ge(n),emit:t,resetFields:p,clearValidate:g,validateField:y,addField:u,removeField:b,...Et()})),e({validate:_,validateField:y,resetFields:p,clearValidate:g,scrollToField:l}),(v,f)=>(pe(),Ue("form",{class:U(O(o))},[Q(v.$slots,"default")],2))}});var St=Ce(Pt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function B(){return B=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},B.apply(this,arguments)}function jt(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,K(i,e)}function me(i){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},me(i)}function K(i,e){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},K(i,e)}function Rt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ee(i,e,t){return Rt()?ee=Reflect.construct.bind():ee=function(r,s,a){var o=[null];o.push.apply(o,s);var u=Function.bind.apply(r,o),b=new u;return a&&K(b,a.prototype),b},ee.apply(null,arguments)}function Nt(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function he(i){var e=typeof Map=="function"?new Map:void 0;return he=function(n){if(n===null||!Nt(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return ee(n,arguments,me(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),K(r,n)},he(i)}var Vt=/%[sdj%]/g,Wt=function(){};typeof process<"u"&&process.env;function ge(i){if(!i||!i.length)return null;var e={};return i.forEach(function(t){var n=t.field;e[n]=e[n]||[],e[n].push(t)}),e}function N(i){for(vLine truncated
|
||||
(?:
|
||||
(?:`+n+":){7}(?:"+n+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||||
(?:`+n+":){6}(?:"+t+"|:"+n+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||||
(?:`+n+":){5}(?::"+t+"|(?::"+n+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||||
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+t+"|(?::"+n+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||||
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+t+"|(?::"+n+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||||
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+t+"|(?::"+n+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||||
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+t+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||||
(?::(?:(?::`+n+"){0,5}:"+t+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+t+"$)|(?:^"+r+"$)"),a=new RegExp("^"+t+"$"),o=new RegExp("^"+r+"$"),u=function(h){return h&&h.exact?s:new RegExp("(?:"+e(h)+t+e(h)+")|(?:"+e(h)+r+e(h)+")","g")};u.v4=function(f){return f&&f.exact?a:new RegExp(""+e(f)+t+e(f),"g")},u.v6=function(f){return f&&f.exact?o:new RegExp(""+e(f)+r+e(f),"g")};var b="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",g=u.v4().source,w=u.v6().source,E="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",_="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",d="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",l='(?:[/?#][^\\s"]*)?',v="(?:"+b+"|www\\.)"+p+"(?:localhost|"+g+"|"+w+"|"+E+_+d+")"+y+l;return X=new RegExp("(?:^"+v+"$)","i"),X},Ie={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},J={integer:function(e){return J.number(e)&&parseInt(e,10)===e},float:function(e){return J.number(e)&&!J.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!J.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Ie.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(Dt())},hex:function(e){return typeof e=="string"&&!!e.match(Ie.hex)}},zt=function(e,t,n,r,s){if(e.required&&t===void 0){ke(e,t,n,r,s);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;a.indexOf(o)>-1?J[o](t)||r.push(N(s.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(N(s.messages.types[o],e.fullField,e.type))},Gt=function(e,t,n,r,s){var a=typeof e.len=="number",o=typeof e.min=="number",u=typeof e.max=="number",b=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=t,g=null,w=typeof t=="number",E=typeof t=="string",_=Array.isArray(t);if(w?g="number":E?g="string":_&&(g="array"),!g)return!1;_&&(p=t.length),E&&(p=t.replace(b,"_").length),a?p!==e.len&&r.push(N(s.messages[g].len,e.fullField,e.len)):o&&!u&&p<e.min?r.push(N(s.messages[g].min,e.fullField,e.min)):u&&!o&&p>e.max?r.push(N(s.messages[g].max,e.fullField,e.max)):o&&u&&(p<e.min||p>e.max)&&r.push(N(s.messages[g].range,e.fullField,e.min,e.max))},z="enum",Ut=function(e,t,n,r,s){e[z]=Array.isArray(e[z])?e[z]:[],e[z].indexOf(t)===-1&&r.push(N(s.messages[z],e.fullField,e[z].join(", ")))},Jt=function(e,t,n,r,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(N(s.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(t)||r.push(N(s.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},m={required:ke,whitespace:Ct,type:zt,range:Gt,enum:Ut,pattern:Jt},Zt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t,"string")&&!e.required)return n();m.required(e,t,r,a,s,"string"),P(t,"string")||(m.type(e,t,r,a,s),m.range(e,t,r,a,s),m.pattern(e,t,r,a,s),e.whitespace===!0&&m.whitespace(e,t,r,a,s))}n(a)},Kt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return n();m.required(e,t,r,a,s),t!==void 0&&m.type(e,t,r,a,s)}n(a)},Yt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),P(t)&&!e.required)return n();m.required(e,t,r,a,s),t!==void 0&&(m.type(e,t,r,a,s),m.range(e,t,r,a,s))}n(a)},kt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return n();m.required(e,t,r,a,s),t!==void 0&&m.type(e,t,r,a,s)}n(a)},Ht=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return n();m.required(e,t,r,a,s),P(t)||m.type(e,t,r,a,s)}n(a)},Xt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return n();m.required(e,t,r,a,s),t!==void 0&&(m.type(e,t,r,a,s),m.range(e,t,r,a,s))}n(a)},Qt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return n();m.required(e,t,r,a,s),t!==void 0&&(m.type(e,t,r,a,s),m.range(e,t,r,a,s))}n(a)},er=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();m.required(e,t,r,a,s,"array"),t!=null&&(m.type(e,t,r,a,s),m.range(e,t,r,a,s))}n(a)},tr=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.fieldLine truncated
|
||||
@@ -0,0 +1,12 @@
|
||||
import{c as $e,g as it,j as we,k as ue,t as at,u as st}from"./el-input-1fa85f7c.js";import{b6 as ot,b as Fe,bk as Be,j as de,ar as ft,G as ce,af as Te,s as $,c as A,d as K,u as qe,O as te,p as Ce,t as De,x as ze,o as pe,V as Ue,r as H,e as k,f as O,_ as ke,a3 as Ge,k as re,P as Ze,Q as Je,aS as lt,a$ as ut,B as ne,a9 as dt,n as Ke,av as ct,bw as pt,aD as Ee,bt as oe,w as fe,a as vt,h as mt,g as Ae,Z as gt,X as Pe,W as Se,S as je,aq as ht,i as yt,ah as bt}from"./index-098ca3b6.js";import{b as wt}from"./_baseClone-88b87991.js";function ve(){if(!arguments.length)return[];var i=arguments[0];return ot(i)?i:[i]}var Ft=4;function Re(i){return wt(i,Ft)}const qt=Fe({size:{type:String,values:Be},disabled:Boolean}),xt=Fe({...qt,model:Object,rules:{type:de(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),Ot={validate:(i,e,t)=>(ft(i)||ce(i))&&Te(e)&&ce(t)};function _t(){const i=$([]),e=A(()=>{if(!i.value.length)return"0";const s=Math.max(...i.value);return s?`${s}px`:""});function t(s){const a=i.value.indexOf(s);return a===-1&&e.value,a}function n(s,a){if(s&&a){const o=t(a);i.value.splice(o,1,s)}else s&&i.value.push(s)}function r(s){const a=t(s);a>-1&&i.value.splice(a,1)}return{autoLabelWidth:e,registerLabelWidth:n,deregisterLabelWidth:r}}const Q=(i,e)=>{const t=ve(e);return t.length>0?i.filter(n=>n.prop&&t.includes(n.prop)):i},Et="ElForm",At=K({name:Et}),Pt=K({...At,props:xt,emits:Ot,setup(i,{expose:e,emit:t}){const n=i,r=[],s=$e(),a=qe("form"),o=A(()=>{const{labelPosition:v,inline:f}=n;return[a.b(),a.m(s.value||"default"),{[a.m(`label-${v}`)]:v,[a.m("inline")]:f}]}),u=v=>{r.push(v)},b=v=>{v.prop&&r.splice(r.indexOf(v),1)},p=(v=[])=>{n.model&&Q(r,v).forEach(f=>f.resetField())},h=(v=[])=>{Q(r,v).forEach(f=>f.clearValidate())},w=A(()=>!!n.model),_=v=>{if(r.length===0)return[];const f=Q(r,v);return f.length?f:[]},E=async v=>y(void 0,v),d=async(v=[])=>{if(!w.value)return!1;const f=_(v);if(f.length===0)return!0;let g={};for(const q of f)try{await q.validate("")}catch(x){g={...g,...x}}return Object.keys(g).length===0?!0:Promise.reject(g)},y=async(v=[],f)=>{const g=!Ge(f);try{const q=await d(v);return q===!0&&(f==null||f(q)),q}catch(q){if(q instanceof Error)throw q;const x=q;return n.scrollToError&&l(Object.keys(x)[0]),f==null||f(!1,x),g&&Promise.reject(x)}},l=v=>{var f;const g=Q(r,v)[0];g&&((f=g.$el)==null||f.scrollIntoView(n.scrollIntoViewOptions))};return te(()=>n.rules,()=>{n.validateOnRuleChange&&E().catch(v=>it())},{deep:!0}),Ce(we,De({...ze(n),emit:t,resetFields:p,clearValidate:h,validateField:y,addField:u,removeField:b,..._t()})),e({validate:E,validateField:y,resetFields:p,clearValidate:h,scrollToField:l}),(v,f)=>(pe(),Ue("form",{class:k(O(o))},[H(v.$slots,"default")],2))}});var St=ke(Pt,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function B(){return B=Object.assign?Object.assign.bind():function(i){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i[n]=t[n])}return i},B.apply(this,arguments)}function jt(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,J(i,e)}function me(i){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},me(i)}function J(i,e){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},J(i,e)}function Rt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ee(i,e,t){return Rt()?ee=Reflect.construct.bind():ee=function(r,s,a){var o=[null];o.push.apply(o,s);var u=Function.bind.apply(r,o),b=new u;return a&&J(b,a.prototype),b},ee.apply(null,arguments)}function Nt(i){return Function.toString.call(i).indexOf("[native code]")!==-1}function ge(i){var e=typeof Map=="function"?new Map:void 0;return ge=function(n){if(n===null||!Nt(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,r)}function r(){return ee(n,arguments,me(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),J(r,n)},ge(i)}var Vt=/%[sdj%]/g,Wt=function(){};typeof process<"u"&&process.env;function he(i){if(!i||!i.length)return null;var e={};return i.forEach(function(t){var n=t.field;e[n]=e[n]||[],e[n].push(t)}),e}function N(iLine truncated
|
||||
(?:
|
||||
(?:`+n+":){7}(?:"+n+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||||
(?:`+n+":){6}(?:"+t+"|:"+n+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||||
(?:`+n+":){5}(?::"+t+"|(?::"+n+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||||
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+t+"|(?::"+n+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||||
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+t+"|(?::"+n+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||||
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+t+"|(?::"+n+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||||
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+t+"|(?::"+n+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||||
(?::(?:(?::`+n+"){0,5}:"+t+"|(?::"+n+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),s=new RegExp("(?:^"+t+"$)|(?:^"+r+"$)"),a=new RegExp("^"+t+"$"),o=new RegExp("^"+r+"$"),u=function(g){return g&&g.exact?s:new RegExp("(?:"+e(g)+t+e(g)+")|(?:"+e(g)+r+e(g)+")","g")};u.v4=function(f){return f&&f.exact?a:new RegExp(""+e(f)+t+e(f),"g")},u.v6=function(f){return f&&f.exact?o:new RegExp(""+e(f)+r+e(f),"g")};var b="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,w=u.v6().source,_="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",E="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",d="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",l='(?:[/?#][^\\s"]*)?',v="(?:"+b+"|www\\.)"+p+"(?:localhost|"+h+"|"+w+"|"+_+E+d+")"+y+l;return X=new RegExp("(?:^"+v+"$)","i"),X},Ie={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},G={integer:function(e){return G.number(e)&&parseInt(e,10)===e},float:function(e){return G.number(e)&&!G.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!G.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(Ie.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(Dt())},hex:function(e){return typeof e=="string"&&!!e.match(Ie.hex)}},zt=function(e,t,n,r,s){if(e.required&&t===void 0){Ye(e,t,n,r,s);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;a.indexOf(o)>-1?G[o](t)||r.push(N(s.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(N(s.messages.types[o],e.fullField,e.type))},Ut=function(e,t,n,r,s){var a=typeof e.len=="number",o=typeof e.min=="number",u=typeof e.max=="number",b=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=t,h=null,w=typeof t=="number",_=typeof t=="string",E=Array.isArray(t);if(w?h="number":_?h="string":E&&(h="array"),!h)return!1;E&&(p=t.length),_&&(p=t.replace(b,"_").length),a?p!==e.len&&r.push(N(s.messages[h].len,e.fullField,e.len)):o&&!u&&p<e.min?r.push(N(s.messages[h].min,e.fullField,e.min)):u&&!o&&p>e.max?r.push(N(s.messages[h].max,e.fullField,e.max)):o&&u&&(p<e.min||p>e.max)&&r.push(N(s.messages[h].range,e.fullField,e.min,e.max))},z="enum",kt=function(e,t,n,r,s){e[z]=Array.isArray(e[z])?e[z]:[],e[z].indexOf(t)===-1&&r.push(N(s.messages[z],e.fullField,e[z].join(", ")))},Gt=function(e,t,n,r,s){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(N(s.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(t)||r.push(N(s.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},m={required:Ye,whitespace:Ct,type:zt,range:Ut,enum:kt,pattern:Gt},Zt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t,"string")&&!e.required)return n();m.required(e,t,r,a,s,"string"),P(t,"string")||(m.type(e,t,r,a,s),m.range(e,t,r,a,s),m.pattern(e,t,r,a,s),e.whitespace===!0&&m.whitespace(e,t,r,a,s))}n(a)},Jt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return n();m.required(e,t,r,a,s),t!==void 0&&m.type(e,t,r,a,s)}n(a)},Kt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),P(t)&&!e.required)return n();m.required(e,t,r,a,s),t!==void 0&&(m.type(e,t,r,a,s),m.range(e,t,r,a,s))}n(a)},Yt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return n();m.required(e,t,r,a,s),t!==void 0&&m.type(e,t,r,a,s)}n(a)},Qt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return n();m.required(e,t,r,a,s),P(t)||m.type(e,t,r,a,s)}n(a)},Xt=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return n();m.required(e,t,r,a,s),t!==void 0&&(m.type(e,t,r,a,s),m.range(e,t,r,a,s))}n(a)},Ht=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(P(t)&&!e.required)return n();m.required(e,t,r,a,s),t!==void 0&&(m.type(e,t,r,a,s),m.range(e,t,r,a,s))}n(a)},er=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return n();m.required(e,t,r,a,s,"array"),t!=null&&(m.type(e,t,r,a,s),m.range(e,t,r,a,s))}n(a)},tr=function(e,t,n,r,s){var a=[],o=e.required||!e.required&&r.hasOwnProperty(e.fieldLine truncated
|
||||
@@ -0,0 +1,9 @@
|
||||
import{F as Te,c as v,bN as Gt,aM as Ce,O,f as s,bP as qt,k as J,P as ce,Q as De,E as St,s as F,as as Se,bs as Yt,bW as Xt,aw as Ie,az as Zt,l as ot,b as Et,ae as wt,j as Ee,aH as Fe,m as Jt,G as we,d as Q,bX as Qt,av as xt,u as le,bC as en,bY as tn,bZ as nn,a$ as an,n as U,A as on,C as rn,o as m,V as A,W as w,a9 as xe,e as k,r as z,S as ne,a as C,w as j,h as X,L as Y,ay as ke,B as sn,aQ as un,U as ln,ai as cn,X as ve,g as fn,_ as Me,q as rt,i as kt,p as Tt,aK as dn,bR as pn,bu as vn,t as hn,ah as bn}from"./index-098ca3b6.js";const gn=()=>Te&&/firefox/i.test(window.navigator.userAgent);function It(e){return e==null}class mn extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function Ia(e,t){throw new mn(`[${e}] ${t}`)}function Fa(e,t){}const Oe="update:modelValue",Ca="change",yn=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Sn=["class","style"],En=/^on[A-Z]/,wn=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=v(()=>((n==null?void 0:n.value)||[]).concat(Sn)),r=Ce();return r?v(()=>{var o;return Gt(Object.entries((o=r.proxy)==null?void 0:o.$attrs).filter(([i])=>!a.value.includes(i)&&!(t&&En.test(i))))}):v(()=>({}))},xn=({from:e,replacement:t,scope:n,version:a,ref:r,type:o="API"},i)=>{O(()=>s(i),f=>{},{immediate:!0})},Ft=e=>{const t=Ce();return v(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})},st={prefix:Math.floor(Math.random()*1e4),current:0},kn=Symbol("elIdInjection"),Tn=()=>Ce()?J(kn,st):st,In=e=>{const t=Tn(),n=qt();return v(()=>s(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let ae=[];const it=e=>{const t=e;t.key===St.esc&&ae.forEach(n=>n(t))},Fn=e=>{ce(()=>{ae.length===0&&document.addEventListener("keydown",it),Te&&ae.push(e)}),De(()=>{ae=ae.filter(t=>t!==e),ae.length===0&&Te&&document.removeEventListener("keydown",it)})};function Cn(e){const t=F();function n(){if(e.value==null)return;const{selectionStart:r,selectionEnd:o,value:i}=e.value;if(r==null||o==null)return;const f=i.slice(0,Math.max(0,r)),d=i.slice(Math.max(0,o));t.value={selectionStart:r,selectionEnd:o,value:i,beforeTxt:f,afterTxt:d}}function a(){if(e.value==null||t.value==null)return;const{value:r}=e.value,{beforeTxt:o,afterTxt:i,selectionStart:f}=t.value;if(o==null||i==null||f==null)return;let d=r.length;if(r.endsWith(i))d=r.length-i.length;else if(r.startsWith(o))d=o.length;else{const h=o[f-1],g=r.indexOf(h,f-1);g!==-1&&(d=g+1)}e.value.setSelectionRange(d,d)}return[n,a]}function Mn(e,{afterFocus:t,afterBlur:n}={}){const a=Ce(),{emit:r}=a,o=Se(),i=F(!1),f=g=>{i.value||(i.value=!0,r("focus",g),t==null||t())},d=g=>{var b;g.relatedTarget&&((b=o.value)!=null&&b.contains(g.relatedTarget))||(i.value=!1,r("blur",g),n==null||n())},h=()=>{var g;(g=e.value)==null||g.focus()};return O(o,g=>{g&&g.setAttribute("tabindex","-1")}),Yt(o,"click",h),{wrapperRef:o,isFocused:i,handleFocus:f,handleBlur:d}}const Ke=Symbol("formContextKey"),Ct=Symbol("formItemContextKey"),Mt=(e,t={})=>{const n=F(void 0),a=t.prop?n:Ft("size"),r=t.global?n:Xt(),o=t.form?{size:void 0}:J(Ke,void 0),i=t.formItem?{size:void 0}:J(Ct,void 0);return v(()=>a.value||s(e)||(i==null?void 0:i.size)||(o==null?void 0:o.size)||r.value||"")},Ue=e=>{const t=Ft("disabled"),n=J(Ke,void 0);return v(()=>t.value||s(e)||(n==null?void 0:n.disabled)||!1)},Rt=()=>{const e=J(Ke,void 0),t=J(Ct,void 0);return{form:e,formItem:t}},Rn=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=F(!1)),a||(a=F(!1));const r=F();let o;const i=v(()=>{var f;return!!(!e.label&&t&&t.inputIds&&((f=t.inputIds)==null?void 0:f.length)<=1)});return ce(()=>{o=O([Ie(e,"id"),n],([f,d])=>{const h=f??(d?void 0:In().value);h!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(a!=null&&a.value)&&!d&&h&&t.addInputId(h)),r.value=h)},{immediate:!0})}),Zt(()=>{o&&o(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:i,inputId:r}};let _;const An=`
|
||||
height:0 !important;
|
||||
visibility:hidden !important;
|
||||
${gn()?"":"overflow:hidden !important;"}
|
||||
position:absolute !important;
|
||||
z-index:-1000 !important;
|
||||
top:0 !important;
|
||||
right:0 !important;
|
||||
`,_n=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function Pn(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:_n.map(i=>`${i}:${t.getPropertyValue(i)}`).join(";"),paddingSize:a,borderSize:r,boxSizing:n}}function ut(e,t=1,n){var a;_||(_=document.createElement("textarea"),document.body.appendChild(_));const{paddingSize:r,borderSize:o,boxSizing:i,contextStyle:f}=Pn(e);_.setAttribute("style",`${f};${An}`),_.value=e.value||e.placeholder||"";let d=_.scrollHeight;const h={};i==="border-box"?d=d+o:i==="content-box"&&(d=d-r),_.value="";const g=_.scrollHeight-r;if(ot(t)){let b=g*t;i==="border-box"&&(b=b+r+o),d=Math.max(b,d),h.minHeight=`${b}px`}if(ot(n)){let b=g*n;i==="border-box"&&(b=b+r+o),d=Math.min(b,d)}return h.height=`${d}px`,(a=_.parentNode)==null||a.removeChild(_),_=void 0,h}const Nn=Et({id:{type:String,default:void 0},size:wt,disabled:Boolean,modelValue:{type:Ee([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Ee([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Fe},prefixIcon:{type:Fe},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Ee([Object,Array,String]),default:()=>Jt({})}}),Bn={[Oe]:e=>we(e),input:e=>we(e),change:e=>we(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Hn=["role"],$n=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],zn=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],On=Q({name:"ElInput",inheritAttrs:!1}),Vn=Q({...On,props:Nn,emits:Bn,setup(e,{expose:t,emit:n}){const a=e,r=Qt(),o=xt(),i=v(()=>{const u={};return a.containerRole==="combobox"&&(u["aria-haspopup"]=r["aria-haspopup"],u["aria-owns"]=r["aria-owns"],u["aria-expanded"]=r["aria-expanded"]),u}),f=v(()=>[a.type==="textarea"?S.b():l.b(),l.m(y.value),l.is("disabled",c.value),l.is("exceed",$t.value),{[l.b("group")]:o.prepend||o.append,[l.bm("group","append")]:o.append,[l.bm("group","prepend")]:o.prepend,[l.m("prefix")]:o.prefix||a.prefixIcon,[l.m("suffix")]:o.suffix||a.suffixIcon||a.clearable||a.showPassword,[l.bm("suffix","password-clear")]:de.value&&Ae.value},r.class]),d=v(()=>[l.e("wrapper"),l.is("focus",q.value)]),h=wn({excludeKeys:v(()=>Object.keys(i.value))}),{form:g,formItem:b}=Rt(),{inputId:B}=Rn(a,{formItemContext:b}),y=Mt(),c=Ue(),l=le("input"),S=le("textarea"),x=Se(),E=Se(),ee=F(!1),V=F(!1),G=F(!1),fe=F(),H=Se(a.inputStyle),N=v(()=>x.value||E.value),{wrapperRef:oe,isFocused:q,handleFocus:re,handleBlur:M}=Mn(N,{afterBlur(){var u;a.validateEvent&&((u=b==null?void 0:b.validate)==null||u.call(b,"blur").catch(p=>void 0))}}),Ge=v(()=>{var u;return(u=g==null?void 0:g.statusIcon)!=null?u:!1}),se=v(()=>(b==null?void 0:b.validateState)||""),qe=v(()=>se.value&&en[se.value]),Bt=v(()=>G.value?tn:nn),Ht=v(()=>[r.style,a.inputStyle]),Ye=v(()=>[a.inputStyle,H.value,{resize:a.resize}]),L=v(()=>It(a.modelValue)?"":String(a.modelValue)),de=v(()=>a.clearable&&!c.value&&!a.readonly&&!!L.value&&(q.value||ee.value)),Ae=v(()=>a.showPassword&&!c.value&&!a.readonly&&!!L.value&&(!!L.value||q.value)),te=v(()=>a.showWordLimit&&!!h.value.maxlength&&(a.type==="text"||a.type==="textarea")&&!c.value&&!a.readonly&&!a.showPassword),_e=v(()=>L.value.length),$t=v(()=>!!te.value&&_e.value>Number(h.value.maxlength)),zt=v(()=>!!o.suffix||!!a.suffixIcon||de.value||a.showPassword||te.value||!!se.value&&Ge.value),[Ot,Vt]=Cn(x);an(E,u=>{if(Lt(),!te.value||a.resize!=="both")return;const p=u[0],{width:T}=p.contentRect;fe.value={right:`calc(100% - ${T+15+6}px)`}});const ie=()=>{const{type:u,autosize:p}=a;if(!(!Te||u!=="textarea"||!E.value))if(p){const T=rt(p)?p.minRows:void 0,pe=rt(p)?p.maxRows:void 0,at=ut(E.value,T,pe);H.value={overflowY:"hidden",...at},U(()=>{E.value.offsetHeight,H.value=at})}else H.value={minHeight:ut(E.value).minLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{bH as Je,bA as ue,b2 as fn,be as or,bx as ar,bf as sr,b7 as pt,b8 as Xe,bI as ir,b6 as dn,b3 as lr,bJ as ct,bK as qe,bz as ur,bL as we,bM as vn,j as M,c as x,a3 as Ue,O as F,P as Ye,aM as pr,F as Ce,af as gn,f as c,as as cr,s as k,Q as Ie,bN as It,bO as fr,br as dr,bP as vr,b as te,l as gr,p as Re,d as L,r as le,_ as pe,u as ke,k as ce,o as Z,V as Ve,e as mn,g as mr,ai as ot,A as bn,bQ as br,q as hr,a9 as yr,bR as wr,bv as Or,B as je,bS as hn,a4 as Ge,a as ve,w as ne,ay as ft,W as _e,aJ as Tr,i as yn,E as kt,ar as Ar,aw as Ee,C as Er,T as Cr,aO as xr,bT as Pr,bU as Sr,bV as Rr,X as jr}from"./index-098ca3b6.js";import{m as _r,i as wn,k as Bt,a as Mr,u as $r}from"./el-input-1fa85f7c.js";const Q=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const a=e==null?void 0:e(o);if(n===!1||!a)return t==null?void 0:t(o)};var Ir=Je(ue,"WeakMap");const at=Ir;var Ft=Object.create,kr=function(){function e(){}return function(t){if(!fn(t))return{};if(Ft)return Ft(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Br=kr;function hi(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function yi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var u=t[a],l=r?r(n[u],e[u],u,n,e):void 0;l===void 0&&(l=e[u]),o?or(n,u,l):ar(n,u,l)}return n}var Fr=9007199254740991;function On(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Fr}function Tn(e){return e!=null&&On(e.length)&&!sr(e)}var Dr=Object.prototype;function dt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Dr;return e===n}function Lr(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Nr="[object Arguments]";function Dt(e){return pt(e)&&Xe(e)==Nr}var An=Object.prototype,Wr=An.hasOwnProperty,Hr=An.propertyIsEnumerable,Ur=Dt(function(){return arguments}())?Dt:function(e){return pt(e)&&Wr.call(e,"callee")&&!Hr.call(e,"callee")};const Kr=Ur;function zr(){return!1}var En=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Lt=En&&typeof module=="object"&&module&&!module.nodeType&&module,qr=Lt&&Lt.exports===En,Nt=qr?ue.Buffer:void 0,Vr=Nt?Nt.isBuffer:void 0,Gr=Vr||zr;const Zr=Gr;var Jr="[object Arguments]",Xr="[object Array]",Yr="[object Boolean]",Qr="[object Date]",eo="[object Error]",to="[object Function]",no="[object Map]",ro="[object Number]",oo="[object Object]",ao="[object RegExp]",so="[object Set]",io="[object String]",lo="[object WeakMap]",uo="[object ArrayBuffer]",po="[object DataView]",co="[object Float32Array]",fo="[object Float64Array]",vo="[object Int8Array]",go="[object Int16Array]",mo="[object Int32Array]",bo="[object Uint8Array]",ho="[object Uint8ClampedArray]",yo="[object Uint16Array]",wo="[object Uint32Array]",S={};S[co]=S[fo]=S[vo]=S[go]=S[mo]=S[bo]=S[ho]=S[yo]=S[wo]=!0;S[Jr]=S[Xr]=S[uo]=S[Yr]=S[po]=S[Qr]=S[eo]=S[to]=S[no]=S[ro]=S[oo]=S[ao]=S[so]=S[io]=S[lo]=!1;function Oo(e){return pt(e)&&On(e.length)&&!!S[Xe(e)]}function To(e){return function(t){return e(t)}}var Cn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xe=Cn&&typeof module=="object"&&module&&!module.nodeType&&module,Ao=xe&&xe.exports===Cn,rt=Ao&&ir.process,Eo=function(){try{var e=xe&&xe.require&&xe.require("util").types;return e||rt&&rt.binding&&rt.binding("util")}catch{}}();const Wt=Eo;var Ht=Wt&&Wt.isTypedArray,Co=Ht?To(Ht):Oo;const xo=Co;var Po=Object.prototype,So=Po.hasOwnProperty;function xn(e,t){var n=dn(e),r=!n&&Kr(e),o=!n&&!r&&Zr(e),a=!n&&!r&&!o&&xo(e),i=n||r||o||a,u=i?Lr(e.length,String):[],l=u.length;for(var s in e)(t||So.call(e,s))&&!(i&&(s=="length"||o&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||lr(s,l)))&&u.push(s);return u}function Pn(e,t){return function(n){return e(t(n))}}var Ro=Pn(Object.keys,Object);const jo=Ro;var _o=Object.prototype,Mo=_o.hasOwnProperty;function $o(e){if(!dt(e))return jo(e);var t=[];for(var n in Object(e))Mo.call(e,n)&&n!="constructor"&&t.push(n);return t}function Io(e){return Tn(e)?xn(e):$o(e)}function ko(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Bo=Object.prototype,Fo=Bo.hasOwnProperty;function Do(e){if(!fn(e))return ko(e);var t=dt(e),n=[];for(var r in e)r=="constructor"&&(t||!Fo.call(e,r))||n.push(r);return n}function wi(e){return Tn(e)?xn(e,!0):Do(e)}function Lo(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var No=Pn(Object.getPrototypeOf,Object);const Wo=No;function Ho(){this.__data__=new ct,this.size=0}function Uo(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ko(e){return this.__data__.get(e)}function zo(e){return this.__data__.has(e)}var qo=200;function Vo(e,t){var n=this.__data__;if(n instanceof ct){var r=n.__data__;if(!qe||r.length<qo-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ur(r)}return n.set(e,t),this.size=n.size,this}function Be(e){var t=this.__data__=new ct(e);this.size=t.size}Be.prototype.clear=Ho;Be.prototype.delete=Uo;Be.prototype.get=Ko;Be.prototype.has=zo;Be.prototype.set=Vo;var Sn=typeof exports=="object"&&exports&&!exporLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{aR as Je,aM as ue,ah as fn,at as or,aJ as ar,au as sr,am as pt,an as Xe,aS as ir,al as dn,ai as lr,aT as ct,aU as qe,aL as ur,aV as we,aW as vn,d as $,c as xe,x as gn,aX as It,aY as pr,aZ as cr,a_ as fr,b as te,i as dr,_ as pe,u as Ie,a$ as mn,p as Ve,H as hn,$ as vr,aH as kt,h as gr,w as yn,E as Bt,b0 as mr,n as hr}from"./request-7df3eafb.js";import{c as C,N as Ue,z as F,A as Ye,a5 as yr,u as c,Y as br,h as k,B as ke,ad as wr,p as Re,d as L,r as le,i as ce,o as Z,F as Ge,b as bn,e as Or,V as ot,m as wn,ai as Tr,g as Ar,R as Er,aj as xr,ae as Cr,q as je,a as ve,w as ne,a0 as ft,G as _e,X as Pr,_ as Ee,v as Sr,T as Rr,a6 as jr,ak as _r,al as $r,H as Mr}from"./index-c6e70cde.js";const Q=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const a=e==null?void 0:e(o);if(n===!1||!a)return t==null?void 0:t(o)};var Ir=Je(ue,"WeakMap");const at=Ir;var Ft=Object.create,kr=function(){function e(){}return function(t){if(!fn(t))return{};if(Ft)return Ft(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const Br=kr;function yi(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function bi(e,t,n,r){var o=!n;n||(n={});for(var a=-1,i=t.length;++a<i;){var u=t[a],l=r?r(n[u],e[u],u,n,e):void 0;l===void 0&&(l=e[u]),o?or(n,u,l):ar(n,u,l)}return n}var Fr=9007199254740991;function On(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Fr}function Tn(e){return e!=null&&On(e.length)&&!sr(e)}var Dr=Object.prototype;function dt(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Dr;return e===n}function Lr(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Nr="[object Arguments]";function Dt(e){return pt(e)&&Xe(e)==Nr}var An=Object.prototype,Hr=An.hasOwnProperty,Wr=An.propertyIsEnumerable,Ur=Dt(function(){return arguments}())?Dt:function(e){return pt(e)&&Hr.call(e,"callee")&&!Wr.call(e,"callee")};const Kr=Ur;function zr(){return!1}var En=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Lt=En&&typeof module=="object"&&module&&!module.nodeType&&module,qr=Lt&&Lt.exports===En,Nt=qr?ue.Buffer:void 0,Vr=Nt?Nt.isBuffer:void 0,Gr=Vr||zr;const Zr=Gr;var Jr="[object Arguments]",Xr="[object Array]",Yr="[object Boolean]",Qr="[object Date]",eo="[object Error]",to="[object Function]",no="[object Map]",ro="[object Number]",oo="[object Object]",ao="[object RegExp]",so="[object Set]",io="[object String]",lo="[object WeakMap]",uo="[object ArrayBuffer]",po="[object DataView]",co="[object Float32Array]",fo="[object Float64Array]",vo="[object Int8Array]",go="[object Int16Array]",mo="[object Int32Array]",ho="[object Uint8Array]",yo="[object Uint8ClampedArray]",bo="[object Uint16Array]",wo="[object Uint32Array]",S={};S[co]=S[fo]=S[vo]=S[go]=S[mo]=S[ho]=S[yo]=S[bo]=S[wo]=!0;S[Jr]=S[Xr]=S[uo]=S[Yr]=S[po]=S[Qr]=S[eo]=S[to]=S[no]=S[ro]=S[oo]=S[ao]=S[so]=S[io]=S[lo]=!1;function Oo(e){return pt(e)&&On(e.length)&&!!S[Xe(e)]}function To(e){return function(t){return e(t)}}var xn=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ce=xn&&typeof module=="object"&&module&&!module.nodeType&&module,Ao=Ce&&Ce.exports===xn,rt=Ao&&ir.process,Eo=function(){try{var e=Ce&&Ce.require&&Ce.require("util").types;return e||rt&&rt.binding&&rt.binding("util")}catch{}}();const Ht=Eo;var Wt=Ht&&Ht.isTypedArray,xo=Wt?To(Wt):Oo;const Co=xo;var Po=Object.prototype,So=Po.hasOwnProperty;function Cn(e,t){var n=dn(e),r=!n&&Kr(e),o=!n&&!r&&Zr(e),a=!n&&!r&&!o&&Co(e),i=n||r||o||a,u=i?Lr(e.length,String):[],l=u.length;for(var s in e)(t||So.call(e,s))&&!(i&&(s=="length"||o&&(s=="offset"||s=="parent")||a&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||lr(s,l)))&&u.push(s);return u}function Pn(e,t){return function(n){return e(t(n))}}var Ro=Pn(Object.keys,Object);const jo=Ro;var _o=Object.prototype,$o=_o.hasOwnProperty;function Mo(e){if(!dt(e))return jo(e);var t=[];for(var n in Object(e))$o.call(e,n)&&n!="constructor"&&t.push(n);return t}function Io(e){return Tn(e)?Cn(e):Mo(e)}function ko(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Bo=Object.prototype,Fo=Bo.hasOwnProperty;function Do(e){if(!fn(e))return ko(e);var t=dt(e),n=[];for(var r in e)r=="constructor"&&(t||!Fo.call(e,r))||n.push(r);return n}function wi(e){return Tn(e)?Cn(e,!0):Do(e)}function Lo(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var No=Pn(Object.getPrototypeOf,Object);const Ho=No;function Wo(){this.__data__=new ct,this.size=0}function Uo(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ko(e){return this.__data__.get(e)}function zo(e){return this.__data__.has(e)}var qo=200;function Vo(e,t){var n=this.__data__;if(n instanceof ct){var r=n.__data__;if(!qe||r.length<qo-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ur(r)}return n.set(e,t),this.size=n.size,this}function Be(e){var t=this.__data__=new ct(e);this.size=t.size}Be.prototype.clear=Wo;Be.prototype.delete=Uo;Be.prototype.get=Ko;Be.prototype.has=zo;Be.prototype.set=Vo;var Sn=typeof exports=="object"&&exports&&!exports.nodeTLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{d as ne,i as Re,h as P,c as S,B as dn,_ as Wl,o as I,a as q,w as R,m as Te,D as K,b as A,u as L,e as _,v as Ye,T as Ll,F as H,q as se,R as ze,z as G,n as V,p as $l,j as De,A as Je,a8 as Sn,r as ge,f as Il,G as Q,g as Al,aa as je,a5 as zl,t as Rl,H as ue,E as ae,Y as Vl,N as me,af as $e,ag as Ol,s as cn,C as ie,ac as On,S as Cl,I as j,ah as Cn,$ as wn}from"./index-c6e70cde.js";import{aK as Tn,ah as Pl,aL as En,ak as kl,aj as Ln,al as ql,am as Fl,aM as In,aN as An,b as Dl,_ as he,u as ce,G as Pn,aD as Ml,c as Bl,d as Mn,i as Ce,V as Gl,ae as Hl,w as fn,p as $n,ar as X,I as Kl,a3 as zn,A as Rn,aO as Dn,y as Bn,D as Hn,E as Ul,U as de,aP as Kn,C as pn,j as Nn,k as Wn,X as Ql,a5 as Vn,ac as kn,aQ as qn,F as vn}from"./request-7df3eafb.js";import{U as jl,w as Xl,r as Yl,f as Jl,S as wl,h as Fn,E as Gn,x as Un,z as Qn}from"./el-popper-79e2cc61.js";import{s as jn,E as Xn,i as Yn,t as Jn}from"./el-tag-3de5cb5d.js";var Zn=/\s/;function _n(e){for(var l=e.length;l--&&Zn.test(e.charAt(l)););return l}var xn=/^\s+/;function et(e){return e&&e.slice(0,_n(e)+1).replace(xn,"")}var Zl=0/0,lt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,tt=/^0o[0-7]+$/i,ot=parseInt;function _l(e){if(typeof e=="number")return e;if(Tn(e))return Zl;if(Pl(e)){var l=typeof e.valueOf=="function"?e.valueOf():e;e=Pl(l)?l+"":l}if(typeof e!="string")return e===0?e:+e;e=et(e);var t=nt.test(e);return t||tt.test(e)?ot(e.slice(2),t?2:8):lt.test(e)?Zl:+e}var it="__lodash_hash_undefined__";function at(e){return this.__data__.set(e,it),this}function rt(e){return this.__data__.has(e)}function Xe(e){var l=-1,t=e==null?0:e.length;for(this.__data__=new En;++l<t;)this.add(e[l])}Xe.prototype.add=Xe.prototype.push=at;Xe.prototype.has=rt;function st(e,l){for(var t=-1,r=e==null?0:e.length;++t<r;)if(l(e[t],t,e))return!0;return!1}function ut(e,l){return e.has(l)}var dt=1,ct=2;function mn(e,l,t,r,f,a){var s=t&dt,c=e.length,u=l.length;if(c!=u&&!(s&&u>c))return!1;var m=a.get(e),g=a.get(l);if(m&&g)return m==l&&g==e;var d=-1,y=!0,w=t&ct?new Xe:void 0;for(a.set(e,l),a.set(l,e);++d<c;){var C=e[d],o=l[d];if(r)var b=s?r(o,C,d,l,e,a):r(C,o,d,e,l,a);if(b!==void 0){if(b)continue;y=!1;break}if(w){if(!st(l,function(T,E){if(!ut(w,E)&&(C===T||f(C,T,t,r,a)))return w.push(E)})){y=!1;break}}else if(!(C===o||f(C,o,t,r,a))){y=!1;break}}return a.delete(e),a.delete(l),y}function ft(e){var l=-1,t=Array(e.size);return e.forEach(function(r,f){t[++l]=[f,r]}),t}function pt(e){var l=-1,t=Array(e.size);return e.forEach(function(r){t[++l]=r}),t}var vt=1,mt=2,gt="[object Boolean]",ht="[object Date]",bt="[object Error]",yt="[object Map]",St="[object Number]",Ot="[object RegExp]",Ct="[object Set]",wt="[object String]",Tt="[object Symbol]",Et="[object ArrayBuffer]",Lt="[object DataView]",xl=kl?kl.prototype:void 0,Tl=xl?xl.valueOf:void 0;function It(e,l,t,r,f,a,s){switch(t){case Lt:if(e.byteLength!=l.byteLength||e.byteOffset!=l.byteOffset)return!1;e=e.buffer,l=l.buffer;case Et:return!(e.byteLength!=l.byteLength||!a(new jl(e),new jl(l)));case gt:case ht:case St:return Ln(+e,+l);case bt:return e.name==l.name&&e.message==l.message;case Ot:case wt:return e==l+"";case yt:var c=ft;case Ct:var u=r&vt;if(c||(c=pt),e.size!=l.size&&!u)return!1;var m=s.get(e);if(m)return m==l;r|=mt,s.set(e,l);var g=mn(c(e),c(l),r,f,a,s);return s.delete(e),g;case Tt:if(Tl)return Tl.call(e)==Tl.call(l)}return!1}var At=1,Pt=Object.prototype,Mt=Pt.hasOwnProperty;function $t(e,l,t,r,f,a){var s=t&At,c=Xl(e),u=c.length,m=Xl(l),g=m.length;if(u!=g&&!s)return!1;for(var d=u;d--;){var y=c[d];if(!(s?y in l:Mt.call(l,y)))return!1}var w=a.get(e),C=a.get(l);if(w&&C)return w==l&&C==e;var o=!0;a.set(e,l),a.set(l,e);for(var b=s;++d<u;){y=c[d];var T=e[y],E=l[y];if(r)var D=s?r(E,T,y,l,e,a):r(T,E,y,e,l,a);if(!(D===void 0?T===E||f(T,E,t,r,a):D)){o=!1;break}b||(b=y=="constructor")}if(o&&!b){var N=e.constructor,$=l.constructor;N!=$&&"constructor"in e&&"constructor"in l&&!(typeof N=="function"&&N instanceof N&&typeof $=="function"&&$ instanceof $)&&(o=!1)}return a.delete(e),a.delete(l),o}var zt=1,en="[object Arguments]",ln="[object Array]",Qe="[object Object]",Rt=Object.prototype,nn=Rt.hasOwnProperty;function Dt(e,l,t,r,f,a){var s=ql(e),c=ql(l),u=s?ln:Yl(e),m=c?ln:Yl(l);u=u==en?Qe:u,m=m==en?Qe:m;var g=u==Qe,d=m==Qe,y=u==m;if(y&&Jl(e)){if(!Jl(l))return!1;s=!0,g=!1}if(y&&!g)return a||(a=new wl),s||Fn(e)?mn(e,l,t,r,f,a):It(e,l,u,t,r,f,a);if(!(t&zt)){var w=g&&nn.call(e,"__wrapped__"),C=d&&nn.call(l,"__wrapped__");if(w||C){var o=w?e.value():e,b=C?l.value():l;return a||(a=new wl),f(o,b,t,r,a)}}return y?(a||(a=new wl),$t(e,l,t,r,f,a)):!1}function gn(e,l,t,r,f){return e===l?!0:e==null||l==null||!Fl(e)&&!Fl(l)?e!==e&&l!==l:Dt(e,l,t,r,gn,f)}var Bt=function(){return In.Date.now()};const El=Bt;var Ht="Expected a function",Kt=Math.max,Nt=Math.min;function tn(e,l,t){var r,f,a,s,c,u,m=0,g=!1,d=!1,y=!0;if(typeof e!="function")throw new TypeError(Ht);l=_l(l)||0,Pl(t)&&(g=!!t.leading,d="maxWait"in t,a=d?Kt(_l(t.maxWait)||0,l):a,y="trailing"in t?!!t.trailing:y);function w(h){var Line truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{by as Sn,b2 as Ll,bz as On,b5 as Nl,b4 as Cn,b6 as Vl,b7 as kl,bA as wn,bB as Tn,b as $l,_ as he,d as ne,k as Re,u as ce,s as P,c as S,Q as dn,bs as Il,aw as ql,o as I,a as q,w as R,A as Te,S as K,e as A,f as L,g as x,C as Ye,T as Al,F as zl,V as H,B as se,a9 as ze,j as En,l as Ce,aD as Fl,O as U,a$ as Rl,n as V,p as Dl,t as De,P as Ze,aS as Ln,r as ge,h as Pl,W as Q,q as Ml,i as cn,a4 as In,bi as je,bc as X,aM as Bl,x as Hl,X as ue,U as ae,aj as Kl,as as Ul,bC as An,a3 as me,bD as $e,bE as Ol,E as Gl,G as fn,L as Pn,aH as Ql,aQ as Mn,aZ as $n,bF as zn,R as ie,bq as Rn,aa as Cl,Y as j,bG as Dn,ax as Bn,ah as pn}from"./index-098ca3b6.js";import{U as jl,w as Xl,r as Yl,f as Zl,S as wl,h as Hn,E as Kn,x as Wn,z as Nn}from"./el-popper-61ab67a6.js";import{t as Vn,h as kn,e as qn,c as Fn,g as Un,U as de,l as Gn,C as vn,b as Qn}from"./el-input-1fa85f7c.js";import{s as jn,E as Xn,i as Yn,t as Zn}from"./el-tag-3005f0d6.js";var Jn=/\s/;function xn(e){for(var l=e.length;l--&&Jn.test(e.charAt(l)););return l}var _n=/^\s+/;function et(e){return e&&e.slice(0,xn(e)+1).replace(_n,"")}var Jl=0/0,lt=/^[-+]0x[0-9a-f]+$/i,nt=/^0b[01]+$/i,tt=/^0o[0-7]+$/i,ot=parseInt;function xl(e){if(typeof e=="number")return e;if(Sn(e))return Jl;if(Ll(e)){var l=typeof e.valueOf=="function"?e.valueOf():e;e=Ll(l)?l+"":l}if(typeof e!="string")return e===0?e:+e;e=et(e);var t=nt.test(e);return t||tt.test(e)?ot(e.slice(2),t?2:8):lt.test(e)?Jl:+e}var it="__lodash_hash_undefined__";function at(e){return this.__data__.set(e,it),this}function rt(e){return this.__data__.has(e)}function Xe(e){var l=-1,t=e==null?0:e.length;for(this.__data__=new On;++l<t;)this.add(e[l])}Xe.prototype.add=Xe.prototype.push=at;Xe.prototype.has=rt;function st(e,l){for(var t=-1,r=e==null?0:e.length;++t<r;)if(l(e[t],t,e))return!0;return!1}function ut(e,l){return e.has(l)}var dt=1,ct=2;function mn(e,l,t,r,f,a){var s=t&dt,c=e.length,u=l.length;if(c!=u&&!(s&&u>c))return!1;var m=a.get(e),g=a.get(l);if(m&&g)return m==l&&g==e;var d=-1,y=!0,w=t&ct?new Xe:void 0;for(a.set(e,l),a.set(l,e);++d<c;){var C=e[d],o=l[d];if(r)var b=s?r(o,C,d,l,e,a):r(C,o,d,e,l,a);if(b!==void 0){if(b)continue;y=!1;break}if(w){if(!st(l,function(T,E){if(!ut(w,E)&&(C===T||f(C,T,t,r,a)))return w.push(E)})){y=!1;break}}else if(!(C===o||f(C,o,t,r,a))){y=!1;break}}return a.delete(e),a.delete(l),y}function ft(e){var l=-1,t=Array(e.size);return e.forEach(function(r,f){t[++l]=[f,r]}),t}function pt(e){var l=-1,t=Array(e.size);return e.forEach(function(r){t[++l]=r}),t}var vt=1,mt=2,gt="[object Boolean]",ht="[object Date]",bt="[object Error]",yt="[object Map]",St="[object Number]",Ot="[object RegExp]",Ct="[object Set]",wt="[object String]",Tt="[object Symbol]",Et="[object ArrayBuffer]",Lt="[object DataView]",_l=Nl?Nl.prototype:void 0,Tl=_l?_l.valueOf:void 0;function It(e,l,t,r,f,a,s){switch(t){case Lt:if(e.byteLength!=l.byteLength||e.byteOffset!=l.byteOffset)return!1;e=e.buffer,l=l.buffer;case Et:return!(e.byteLength!=l.byteLength||!a(new jl(e),new jl(l)));case gt:case ht:case St:return Cn(+e,+l);case bt:return e.name==l.name&&e.message==l.message;case Ot:case wt:return e==l+"";case yt:var c=ft;case Ct:var u=r&vt;if(c||(c=pt),e.size!=l.size&&!u)return!1;var m=s.get(e);if(m)return m==l;r|=mt,s.set(e,l);var g=mn(c(e),c(l),r,f,a,s);return s.delete(e),g;case Tt:if(Tl)return Tl.call(e)==Tl.call(l)}return!1}var At=1,Pt=Object.prototype,Mt=Pt.hasOwnProperty;function $t(e,l,t,r,f,a){var s=t&At,c=Xl(e),u=c.length,m=Xl(l),g=m.length;if(u!=g&&!s)return!1;for(var d=u;d--;){var y=c[d];if(!(s?y in l:Mt.call(l,y)))return!1}var w=a.get(e),C=a.get(l);if(w&&C)return w==l&&C==e;var o=!0;a.set(e,l),a.set(l,e);for(var b=s;++d<u;){y=c[d];var T=e[y],E=l[y];if(r)var D=s?r(E,T,y,l,e,a):r(T,E,y,e,l,a);if(!(D===void 0?T===E||f(T,E,t,r,a):D)){o=!1;break}b||(b=y=="constructor")}if(o&&!b){var W=e.constructor,$=l.constructor;W!=$&&"constructor"in e&&"constructor"in l&&!(typeof W=="function"&&W instanceof W&&typeof $=="function"&&$ instanceof $)&&(o=!1)}return a.delete(e),a.delete(l),o}var zt=1,en="[object Arguments]",ln="[object Array]",Qe="[object Object]",Rt=Object.prototype,nn=Rt.hasOwnProperty;function Dt(e,l,t,r,f,a){var s=Vl(e),c=Vl(l),u=s?ln:Yl(e),m=c?ln:Yl(l);u=u==en?Qe:u,m=m==en?Qe:m;var g=u==Qe,d=m==Qe,y=u==m;if(y&&Zl(e)){if(!Zl(l))return!1;s=!0,g=!1}if(y&&!g)return a||(a=new wl),s||Hn(e)?mn(e,l,t,r,f,a):It(e,l,u,t,r,f,a);if(!(t&zt)){var w=g&&nn.call(e,"__wrapped__"),C=d&&nn.call(l,"__wrapped__");if(w||C){var o=w?e.value():e,b=C?l.value():l;return a||(a=new wl),f(o,b,t,r,a)}}return y?(a||(a=new wl),$t(e,l,t,r,f,a)):!1}function gn(e,l,t,r,f){return e===l?!0:e==null||l==null||!kl(e)&&!kl(l)?e!==e&&l!==l:Dt(e,l,t,r,gn,f)}var Bt=function(){return wn.Date.now()};const El=Bt;var Ht="Expected a function",Kt=Math.max,Wt=Math.min;function tn(e,l,t){var r,f,a,s,c,u,m=0,g=!1,d=!1,y=!0;if(typeof e!="function")throw new TypeError(Ht);l=xl(l)||0,Ll(t)&&(g=!!t.leading,d="maxWait"in t,a=d?Kt(xl(t.maxWait)||0,l):a,y="trailing"in t?!!t.trailing:y);functionLine truncated
|
||||
@@ -0,0 +1 @@
|
||||
import{F as S,bk as _,b as V,d as B,u as W,c as P,o as d,V as $,S as m,r as k,e as i,f as l,a as h,w as g,B as v,an as y,U as C,L as b,W as w,g as T,T as H,_ as I,i as M}from"./index-098ca3b6.js";import{c as F}from"./el-input-1fa85f7c.js";let f;const D=s=>{var a;if(!S)return 0;if(f!==void 0)return f;const o=document.createElement("div");o.className=`${s}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const n=o.offsetWidth;o.style.overflow="scroll";const e=document.createElement("div");e.style.width="100%",o.appendChild(e);const c=e.offsetWidth;return(a=o.parentNode)==null||a.removeChild(o),f=n-c,f};function G(s,a){if(!S)return;if(!a){s.scrollTop=0;return}const o=[];let n=a.offsetParent;for(;n!==null&&s!==n&&s.contains(n);)o.push(n),n=n.offsetParent;const e=a.offsetTop+o.reduce((t,u)=>t+u.offsetTop,0),c=e+a.offsetHeight,r=s.scrollTop,p=r+s.clientHeight;e<r?s.scrollTop=e:c>p&&(s.scrollTop=c-s.clientHeight)}const J=s=>["",..._].includes(s),R=V({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:_,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),K={close:s=>s instanceof MouseEvent,click:s=>s instanceof MouseEvent},L=B({name:"ElTag"}),U=B({...L,props:R,emits:K,setup(s,{emit:a}){const o=s,n=F(),e=W("tag"),c=P(()=>{const{type:t,hit:u,effect:E,closable:z,round:N}=o;return[e.b(),e.is("closable",z),e.m(t),e.m(n.value),e.m(E),e.is("hit",u),e.is("round",N)]}),r=t=>{a("close",t)},p=t=>{a("click",t)};return(t,u)=>t.disableTransitions?(d(),$("span",{key:0,class:i(l(c)),style:T({backgroundColor:t.color}),onClick:p},[m("span",{class:i(l(e).e("content"))},[k(t.$slots,"default")],2),t.closable?(d(),h(l(b),{key:0,class:i(l(e).e("close")),onClick:C(r,["stop"])},{default:g(()=>[v(l(y))]),_:1},8,["class","onClick"])):w("v-if",!0)],6)):(d(),h(H,{key:1,name:`${l(e).namespace.value}-zoom-in-center`,appear:""},{default:g(()=>[m("span",{class:i(l(c)),style:T({backgroundColor:t.color}),onClick:p},[m("span",{class:i(l(e).e("content"))},[k(t.$slots,"default")],2),t.closable?(d(),h(l(b),{key:0,class:i(l(e).e("close")),onClick:C(r,["stop"])},{default:g(()=>[v(l(y))]),_:1},8,["class","onClick"])):w("v-if",!0)],6)]),_:3},8,["name"]))}});var j=I(U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const O=M(j);export{O as E,D as g,J as i,G as s,R as t};
|
||||
@@ -1 +0,0 @@
|
||||
import{c as S,ax as _,b as P,y as V,u as W,M as k,k as y,_ as M,w as $}from"./request-7df3eafb.js";import{d as B,c as H,o as d,F as I,D as m,r as v,b as i,u as l,a as h,w as g,q as C,E as b,G as w,e as T,T as F}from"./index-c6e70cde.js";let f;const A=s=>{var a;if(!S)return 0;if(f!==void 0)return f;const o=document.createElement("div");o.className=`${s}-scrollbar__wrap`,o.style.visibility="hidden",o.style.width="100px",o.style.position="absolute",o.style.top="-9999px",document.body.appendChild(o);const n=o.offsetWidth;o.style.overflow="scroll";const e=document.createElement("div");e.style.width="100%",o.appendChild(e);const c=e.offsetWidth;return(a=o.parentNode)==null||a.removeChild(o),f=n-c,f};function J(s,a){if(!S)return;if(!a){s.scrollTop=0;return}const o=[];let n=a.offsetParent;for(;n!==null&&s!==n&&s.contains(n);)o.push(n),n=n.offsetParent;const e=a.offsetTop+o.reduce((t,u)=>t+u.offsetTop,0),c=e+a.offsetHeight,r=s.scrollTop,p=r+s.clientHeight;e<r?s.scrollTop=e:c>p&&(s.scrollTop=c-s.clientHeight)}const L=s=>["",..._].includes(s),R=P({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:_,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),q={close:s=>s instanceof MouseEvent,click:s=>s instanceof MouseEvent},D=B({name:"ElTag"}),G=B({...D,props:R,emits:q,setup(s,{emit:a}){const o=s,n=V(),e=W("tag"),c=H(()=>{const{type:t,hit:u,effect:E,closable:z,round:N}=o;return[e.b(),e.is("closable",z),e.m(t),e.m(n.value),e.m(E),e.is("hit",u),e.is("round",N)]}),r=t=>{a("close",t)},p=t=>{a("click",t)};return(t,u)=>t.disableTransitions?(d(),I("span",{key:0,class:i(l(c)),style:T({backgroundColor:t.color}),onClick:p},[m("span",{class:i(l(e).e("content"))},[v(t.$slots,"default")],2),t.closable?(d(),h(l(y),{key:0,class:i(l(e).e("close")),onClick:b(r,["stop"])},{default:g(()=>[C(l(k))]),_:1},8,["class","onClick"])):w("v-if",!0)],6)):(d(),h(F,{key:1,name:`${l(e).namespace.value}-zoom-in-center`,appear:""},{default:g(()=>[m("span",{class:i(l(c)),style:T({backgroundColor:t.color}),onClick:p},[m("span",{class:i(l(e).e("content"))},[v(t.$slots,"default")],2),t.closable?(d(),h(l(y),{key:0,class:i(l(e).e("close")),onClick:b(r,["stop"])},{default:g(()=>[C(l(k))]),_:1},8,["class","onClick"])):w("v-if",!0)],6)]),_:3},8,["name"]))}});var K=M(G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const O=$(K);export{O as E,A as g,L as i,J as s,R as t};
|
||||
@@ -0,0 +1,33 @@
|
||||
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const a of s.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function sa(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const Ce={},Rn=[],lt=()=>{},Cd=()=>!1,Td=/^on[^a-z]/,Os=e=>Td.test(e),oa=e=>e.startsWith("onUpdate:"),Ie=Object.assign,aa=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Od=Object.prototype.hasOwnProperty,ce=(e,t)=>Od.call(e,t),J=Array.isArray,kn=e=>Rr(e)==="[object Map]",Ss=e=>Rr(e)==="[object Set]",ni=e=>Rr(e)==="[object Date]",ne=e=>typeof e=="function",Ee=e=>typeof e=="string",gr=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",bc=e=>ge(e)&&ne(e.then)&&ne(e.catch),Ec=Object.prototype.toString,Rr=e=>Ec.call(e),Sd=e=>Rr(e).slice(8,-1),wc=e=>Rr(e)==="[object Object]",ia=e=>Ee(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xr=sa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ns=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Nd=/-(\w)/g,gt=Ns(e=>e.replace(Nd,(t,n)=>n?n.toUpperCase():"")),Ld=/\B([A-Z])/g,wn=Ns(e=>e.replace(Ld,"-$1").toLowerCase()),Ls=Ns(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qr=Ns(e=>e?`on${Ls(e)}`:""),vr=(e,t)=>!Object.is(e,t),Zr=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},is=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},bo=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Pd=e=>{const t=Ee(e)?Number(e):NaN;return isNaN(t)?e:t};let ri;const Eo=()=>ri||(ri=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Mn(e){if(J(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=Ee(r)?Rd(r):Mn(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(Ee(e))return e;if(ge(e))return e}}const Id=/;(?![^(]*\))/g,xd=/:([^]+)/,Ad=/\/\*[^]*?\*\//g;function Rd(e){const t={};return e.replace(Ad,"").split(Id).forEach(n=>{if(n){const r=n.split(xd);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function He(e){let t="";if(Ee(e))t=e;else if(J(e))for(let n=0;n<e.length;n++){const r=He(e[n]);r&&(t+=r+" ")}else if(ge(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const kd="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Fd=sa(kd);function Cc(e){return!!e||e===""}function Md(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Dn(e[r],t[r]);return n}function Dn(e,t){if(e===t)return!0;let n=ni(e),r=ni(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=gr(e),r=gr(t),n||r)return e===t;if(n=J(e),r=J(t),n||r)return n&&r?Md(e,t):!1;if(n=ge(e),r=ge(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const a in e){const i=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(i&&!l||!i&&l||!Dn(e[a],t[a]))return!1}}return String(e)===String(t)}function Tc(e,t){return e.findIndex(n=>Dn(n,t))}const ls=e=>Ee(e)?e:e==null?"":J(e)||ge(e)&&(e.toString===Ec||!ne(e.toString))?JSON.stringify(e,Oc,2):String(e),Oc=(e,t)=>t&&t.__v_isRef?Oc(e,t.value):kn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Ss(t)?{[`Set(${t.size})`]:[...t.values()]}:ge(t)&&!J(t)&&!wc(t)?String(t):t;let st;class Sc{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=st,!t&&st&&(this.index=(st.scopes||(st.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=st;try{return st=this,t()}finally{st=n}}}on(){st=this}off(){st=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function la(e){return new Sc(e)}function Dd(e,t=st){t&&t.active&&t.effects.push(e)}function ca(){return st}function Nc(e){st&&st.cleanups.push(e)}const ua=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Lc=e=>(e.w&Qt)>0,Pc=e=>(e.n&Qt)>0,$d=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Qt},Ud=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];Lc(oLine truncated
|
||||
* pinia v2.1.6
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let Au;const Us=e=>Au=e,Ru=Symbol();function Ro(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var pr;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(pr||(pr={}));function sh(){const e=la(!0),t=e.run(()=>ue({}));let n=[],r=[];const o=xs({install(s){Us(o),o._a=s,s.provide(Ru,o),s.config.globalProperties.$pinia=o,r.forEach(a=>n.push(a)),r=[]},use(s){return!this._a&&!rh?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const ku=()=>{};function ji(e,t,n,r=ku){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&ca()&&Nc(o),o}function Nn(e,...t){e.slice().forEach(n=>{n(...t)})}const oh=e=>e();function ko(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];Ro(o)&&Ro(r)&&e.hasOwnProperty(n)&&!Te(r)&&!qt(r)?e[n]=ko(o,r):e[n]=r}return e}const ah=Symbol();function ih(e){return!Ro(e)||!e.hasOwnProperty(ah)}const{assign:Vt}=Object;function lh(e){return!!(Te(e)&&e.effect)}function ch(e,t,n,r){const{state:o,actions:s,getters:a}=t,i=n.state.value[e];let l;function c(){i||(n.state.value[e]=o?o():{});const u=pp(n.state.value[e]);return Vt(u,s,Object.keys(a||{}).reduce((p,m)=>(p[m]=xs(Y(()=>{Us(n);const _=n._s.get(e);return a[m].call(_,_)})),p),{}))}return l=Fu(e,c,t,n,r,!0),l}function Fu(e,t,n={},r,o,s){let a;const i=Vt({actions:{}},n),l={deep:!0};let c,u,p=[],m=[],_;const y=r.state.value[e];!s&&!y&&(r.state.value[e]={}),ue({});let b;function S(x){let M;c=u=!1,typeof x=="function"?(x(r.state.value[e]),M={type:pr.patchFunction,storeId:e,events:_}):(ko(r.state.value[e],x),M={type:pr.patchObject,payload:x,storeId:e,events:_});const W=b=Symbol();Fr().then(()=>{b===W&&(c=!0)}),u=!0,Nn(p,M,r.state.value[e])}const h=s?function(){const{state:M}=n,W=M?M():{};this.$patch(Z=>{Vt(Z,W)})}:ku;function w(){a.stop(),p=[],m=[],r._s.delete(e)}function O(x,M){return function(){Us(r);const W=Array.from(arguments),Z=[],H=[];function se(te){Z.push(te)}function Se(te){H.push(te)}Nn(m,{args:W,name:x,store:I,after:se,onError:Se});let Pe;try{Pe=M.apply(this&&this.$id===e?this:I,W)}catch(te){throw Nn(H,te),te}return Pe instanceof Promise?Pe.then(te=>(Nn(Z,te),te)).catch(te=>(Nn(H,te),Promise.reject(te))):(Nn(Z,Pe),Pe)}}const E={_p:r,$id:e,$onAction:ji.bind(null,m),$patch:S,$reset:h,$subscribe(x,M={}){const W=ji(p,x,M.detached,()=>Z()),Z=a.run(()=>Ve(()=>r.state.value[e],H=>{(M.flush==="sync"?u:c)&&x({storeId:e,type:pr.direct,events:_},H)},Vt({},l,M)));return W},$dispose:w},I=kr(E);r._s.set(e,I);const L=r._a&&r._a.runWithContext||oh,A=r._e.run(()=>(a=la(),L(()=>a.run(t))));for(const x in A){const M=A[x];if(Te(M)&&!lh(M)||qt(M))s||(y&&ih(M)&&(Te(M)?M.value=y[x]:ko(M,y[x])),r.state.value[e][x]=M);else if(typeof M=="function"){const W=O(x,M);A[x]=W,i.actions[x]=M}}return Vt(I,A),Vt(fe(I),A),Object.defineProperty(I,"$state",{get:()=>r.state.value[e],set:x=>{S(M=>{Vt(M,x)})}}),r._p.forEach(x=>{Vt(I,a.run(()=>x({store:I,app:r._a,pinia:r,options:i})))}),y&&s&&n.hydrate&&n.hydrate(I.$state,y),c=!0,u=!0,I}function uh(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function a(i,l){const c=Zp();return i=i||(c?Ue(Ru,null):null),i&&Us(i),i=Au,i._s.has(r)||(s?Fu(r,t,o,i):ch(r,o,i)),i._s.get(r)}return a.$id=r,a}function Mu(e,t){return function(){return e.apply(t,arguments)}}const{toString:fh}=Object.prototype,{getPrototypeOf:Aa}=Object,Bs=(e=>t=>{const n=fh.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),St=e=>(e=e.toLowerCase(),t=>Bs(t)===e),Hs=e=>t=>typeof t===e,{isArray:Jn}=Array,Nr=Hs("undefined");function dh(e){return e!==null&&!Nr(e)&&e.constructor!==null&&!Nr(e.constructor)&&ft(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Du=St("ArrayBuffer");function ph(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Du(e.buffer),t}const mh=Hs("string"),ft=Hs("function"),$u=Hs("number"),js=e=>e!==null&&typeof e=="object",hh=e=>e===!0||e===!1,ts=e=>{if(Bs(e)!=="object")return!1;const t=Aa(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},_h=St("Date"),gh=St("File"),vh=St("Blob"),yh=St("FileList"),bh=e=>js(e)&&ft(e.pipe),Eh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ft(e.append)&&((t=Bs(e))==="formdata"||t==="object"&&ft(e.toString)&&e.toString()==="[object FormData]"))},wh=St("URLSearchParams"),Ch=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ur(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Jn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),a=s.length;let i;for(r=0;r<a;r++)i=s[r],Line truncated
|
||||
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&a_[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Yi=Symbol("internals");function nr(e){return e&&String(e).trim().toLowerCase()}function ns(e){return e===!1||e==null?e:k.isArray(e)?e.map(ns):String(e)}function l_(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const c_=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function fo(e,t,n,r,o){if(k.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!k.isString(t)){if(k.isString(r))return t.indexOf(r)!==-1;if(k.isRegExp(r))return r.test(t)}}function u_(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function f_(e,t){const n=k.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,a){return this[r].call(this,t,o,s,a)},configurable:!0})})}class Ws{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(i,l,c){const u=nr(l);if(!u)throw new Error("header name must be a non-empty string");const p=k.findKey(o,u);(!p||o[p]===void 0||c===!0||c===void 0&&o[p]!==!1)&&(o[p||l]=ns(i))}const a=(i,l)=>k.forEach(i,(c,u)=>s(c,u,l));return k.isPlainObject(t)||t instanceof this.constructor?a(t,n):k.isString(t)&&(t=t.trim())&&!c_(t)?a(i_(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=nr(t),t){const r=k.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return l_(o);if(k.isFunction(n))return n.call(this,o,r);if(k.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=nr(t),t){const r=k.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||fo(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(a){if(a=nr(a),a){const i=k.findKey(r,a);i&&(!n||fo(r,r[i],i,n))&&(delete r[i],o=!0)}}return k.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||fo(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return k.forEach(this,(o,s)=>{const a=k.findKey(r,s);if(a){n[a]=ns(o),delete n[s];return}const i=t?u_(s):String(s).trim();i!==s&&delete n[s],n[i]=ns(o),r[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return k.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&k.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Yi]=this[Yi]={accessors:{}}).accessors,o=this.prototype;function s(a){const i=nr(a);r[i]||(f_(o,a),r[i]=!0)}return k.isArray(t)?t.forEach(s):s(t),this}}Ws.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);k.freezeMethods(Ws.prototype);k.freezeMethods(Ws);const At=Ws;function po(e,t){const n=this||ka,r=t||n,o=At.from(r.headers);let s=r.data;return k.forEach(e,function(i){s=i.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Xu(e){return!!(e&&e.__CANCEL__)}function Br(e,t,n){he.call(this,e??"canceled",he.ERR_CANCELED,t,n),this.name="CanceledError"}k.inherits(Br,he,{__CANCEL__:!0});function d_(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new he("Request failed with status code "+n.status,[he.ERR_BAD_REQUEST,he.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const p_=Ot.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,a,i){const l=[];l.push(n+"="+encodeURIComponent(r)),k.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),k.isString(s)&&l.push("path="+s),k.isString(a)&&l.push("domain="+a),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function m_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function h_(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Qu(e,t){return e&&!m_(t)?h_(e,t):t}const __=Ot.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let a=s;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const i=k.isString(a)?o(a):a;return i.protocol===r.protocol&&i.host===r.host}}():function(){return function(){return!0}}();function g_(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function v_(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,a;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[s];a||(a=c),n[o]=l,r[o]=c;let p=s,m=0;for(;p!==o;)m+=n[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-a<t)return;const _=u&&c-u;return _?Math.round(m*1e3/_):void 0}}function qi(e,t){let n=0;const r=v_(50,250);return o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,i=s-n,l=r(i),c=s<=a;n=s;const u={loaded:s,total:a,progress:a?s/a:void 0,bytes:i,rate:l||void 0,estimated:l&&a&&c?(a-s)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const y_=typeof XMLHttpRequest<"u",b_=y_&&function(e){return new Promise(function(n,r){let o=e.data;const s=At.from(e.headers).normalize(),a=e.responseType;let i;function l(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}k.isFormData(o)&&(Ot.isStandardBrowserEnv||Ot.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const _=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(_+":"+y))}const u=Qu(e.baseURL,e.url);c.open(e.method.toUpperCase(),Yu(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const _=At.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!a||a==="text"||a==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:_,config:e,request:c};d_(function(h){n(h),l()},function(h){r(h),l()},b),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){c&&(r(new he("Request aborted",he.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new he("Network Error",he.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||qu;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),r(new he(y,b.clarifyTimeoutError?he.ETIMEDOUT:he.ECONNABORTED,e,c)),c=null},Ot.isStandardBrowserEnv){const _=(e.withCredentials||__(u))&&e.xsrfCookieName&&p_.read(e.xsrfCookieName);_&&s.set(e.xsrfHeaderName,_)}o===void 0&&s.setContentType(null),"setRequestHeader"in c&&k.forEach(s.toJSON(),function(y,b){c.setRequestHeader(b,y)}),k.isUndefined(e.witLine truncated
|
||||
* vue-router v4.2.4
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/const Pn=typeof window<"u";function Yy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ve=Object.assign;function _o(e,t){const n={};for(const r in t){const o=t[r];n[r]=vt(o)?o.map(e):e(o)}return n}const mr=()=>{},vt=Array.isArray,qy=/\/$/,Jy=e=>e.replace(qy,"");function go(e,t,n="/"){let r,o={},s="",a="";const i=t.indexOf("#");let l=t.indexOf("?");return i<l&&i>=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,i>-1?i:t.length),o=e(s)),i>-1&&(r=r||t.slice(0,i),a=t.slice(i,t.length)),r=eb(r??t,n),{fullPath:r+(s&&"?")+s+a,path:r,query:o,hash:a}}function Xy(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ol(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Qy(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Wn(t.matched[r],n.matched[o])&&Hf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Wn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Hf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Zy(e[n],t[n]))return!1;return!0}function Zy(e,t){return vt(e)?Sl(e,t):vt(t)?Sl(t,e):e===t}function Sl(e,t){return vt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function eb(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,a,i;for(a=0;a<r.length;a++)if(i=r[a],i!==".")if(i==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(a-(a===r.length?1:0)).join("/")}var Ir;(function(e){e.pop="pop",e.push="push"})(Ir||(Ir={}));var hr;(function(e){e.back="back",e.forward="forward",e.unknown=""})(hr||(hr={}));function tb(e){if(!e)if(Pn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Jy(e)}const nb=/^[^#]+#/;function rb(e,t){return e.replace(nb,"#")+t}function sb(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Xs=()=>({left:window.pageXOffset,top:window.pageYOffset});function ob(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=sb(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Nl(e,t){return(history.state?history.state.position-t:-1)+e}const Vo=new Map;function ab(e,t){Vo.set(e,t)}function ib(e){const t=Vo.get(e);return Vo.delete(e),t}let lb=()=>location.protocol+"//"+location.host;function jf(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let i=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(i);return l[0]!=="/"&&(l="/"+l),Ol(l,"")}return Ol(n,e)+r+o}function cb(e,t,n,r){let o=[],s=[],a=null;const i=({state:m})=>{const _=jf(e,location),y=n.value,b=t.value;let S=0;if(m){if(n.value=_,t.value=m,a&&a===y){a=null;return}S=b?m.position-b.position:0}else r(_);o.forEach(h=>{h(n.value,y,{delta:S,type:Ir.pop,direction:S?S>0?hr.forward:hr.back:hr.unknown})})};function l(){a=n.value}function c(m){o.push(m);const _=()=>{const y=o.indexOf(m);y>-1&&o.splice(y,1)};return s.push(_),_}function u(){const{history:m}=window;m.state&&m.replaceState(ve({},m.state,{scroll:Xs()}),"")}function p(){for(const m of s)m();s=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:p}}function Ll(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Xs():null}}function ub(e){const{history:t,location:n}=window,r={value:jf(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const p=e.indexOf("#"),m=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+l:lb()+e+l;try{t[u?"replaceState":"pushState"](c,"",m),o.value=c}catch(_){console.error(_),n[u?"replace":"assign"](m)}}function a(l,c){const u=ve({},t.state,Ll(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),r.value=l}function i(l,c){const u=ve({},o.value,t.state,{forward:l,scroll:Xs()});s(u.current,u,!0);const p=ve({},Ll(r.value,l,null),{position:u.position+1},c);s(l,p,!1),r.value=l}return{location:r,state:o,push:i,replace:a}}function fb(e){e=tb(e);const t=ub(e),n=cb(e,t.state,t.location,t.replace);function r(s,a=!0){a||n.pauseListeners(),history.go(s)}const o=ve({location:"",base:e,go:r,createHref:rb.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerLine truncated
|
||||
* shared v9.3.0
|
||||
* (c) 2023 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/const Ko=typeof window<"u",rn=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Zb=(e,t,n)=>eE({l:e,k:t,s:n}),eE=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Fe=e=>typeof e=="number"&&isFinite(e),tE=e=>Qf(e)==="[object Date]",nn=e=>Qf(e)==="[object RegExp]",Zs=e=>re(e)&&Object.keys(e).length===0,ze=Object.assign;let Hl;const xt=()=>Hl||(Hl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function jl(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const nE=Object.prototype.hasOwnProperty;function Ka(e,t){return nE.call(e,t)}const Oe=Array.isArray,Ae=e=>typeof e=="function",j=e=>typeof e=="string",le=e=>typeof e=="boolean",ye=e=>e!==null&&typeof e=="object",Xf=Object.prototype.toString,Qf=e=>Xf.call(e),re=e=>{if(!ye(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},rE=e=>e==null?"":Oe(e)||re(e)&&e.toString===Xf?JSON.stringify(e,null,2):String(e);function sE(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}function Ga(e){let t=e;return()=>++t}function oE(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}/*!
|
||||
* message-compiler v9.3.0
|
||||
* (c) 2023 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/function aE(e,t,n){return{line:e,column:t,offset:n}}function Go(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const iE=/\{([0-9a-zA-Z]+)\}/g;function lE(e,...t){return t.length===1&&cE(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(iE,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Zf=Object.assign,Vl=e=>typeof e=="string",cE=e=>e!==null&&typeof e=="object";function ed(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}const Q={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},uE={[Q.EXPECTED_TOKEN]:"Expected token: '{0}'",[Q.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[Q.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[Q.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[Q.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[Q.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[Q.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[Q.EMPTY_PLACEHOLDER]:"Empty placeholder",[Q.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[Q.INVALID_LINKED_FORMAT]:"Invalid linked format",[Q.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[Q.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[Q.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[Q.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[Q.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[Q.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function Qn(e,t,n={}){const{domain:r,messages:o,args:s}=n,a=lE((o||uE)[e]||"",...s||[]),i=new SyntaxError(String(a));return i.code=e,t&&(i.location=t),i.domain=r,i}function fE(e){throw e}const Lt=" ",dE="\r",Ye=`
|
||||
`,pE=String.fromCharCode(8232),mE=String.fromCharCode(8233);function hE(e){const t=e;let n=0,r=1,o=1,s=0;const a=A=>t[A]===dE&&t[A+1]===Ye,i=A=>t[A]===Ye,l=A=>t[A]===mE,c=A=>t[A]===pE,u=A=>a(A)||i(A)||l(A)||c(A),p=()=>n,m=()=>r,_=()=>o,y=()=>s,b=A=>a(A)||l(A)||c(A)?Ye:t[A],S=()=>b(n),h=()=>b(n+s);function w(){return s=0,u(n)&&(r++,o=0),a(n)&&n++,n++,o++,t[n]}function O(){return a(n+s)&&s++,s++,t[n+s]}function E(){n=0,r=1,o=1,s=0}function I(A=0){s=A}function L(){const A=n+s;for(;A!==n;)w();s=0}return{index:p,line:m,column:_,peekOffset:y,charAt:b,currentChar:S,currentPeek:h,next:w,peek:O,reset:E,resetPeek:I,skipToPeek:L}}const Bt=void 0,_E=".",zl="'",gE="tokenizer";function vE(e,t={}){const n=t.location!==!1,r=hE(e),o=()=>r.index(),s=()=>aE(r.line(),r.column(),r.index()),a=s(),i=o(),l={currentType:14,offset:i,startLoc:a,endLoc:a,lastType:14,lastOffset:i,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function p(f,d,g,...C){const N=c();if(d.column+=g,d.offset+=g,u){const F=n?Go(N.startLoc,d):null,$=Qn(f,F,{domain:gE,args:C});u($)}}function m(f,d,g){f.endLoc=s(),f.currentType=d;const C={type:d};return n&&(C.loc=Go(f.startLoc,f.endLoc)),g!=null&&(C.value=g),C}const _=f=>m(f,14);function y(f,d){return f.currentChar()===d?(f.next(),d):(p(Q.EXPECTED_TOKEN,s(),0,d),"")}function b(f){let d="";for(;f.currentPeek()===Lt||f.currentPeek()===Ye;)d+=f.currentPeek(),f.peek();return d}function S(f){const d=b(f);return f.skipToPeek(),d}function h(f){if(f===Bt)return!1;const d=f.charCodeAt(0);return d>=97&&d<=122||d>=65&&d<=90||d===95}function w(f){if(f===Bt)return!1;const d=f.charCodeAt(0);return d>=48&&d<=57}function O(f,d){const{currentType:g}=d;if(g!==2)return!1;b(f);const C=h(f.currentPeek());return f.resetPeek(),C}function E(f,d){const{currentType:g}=d;if(g!==2)return!1;b(f);const C=f.currentPeek()==="-"?f.peek():f.currentPeek(),N=w(C);return f.resetPeek(),N}function I(f,d){const{currentType:g}=d;if(g!==2)return!1;b(f);const C=f.currentPeek()===zl;return f.resetPeek(),C}function L(f,d){const{currentType:g}=d;if(g!==8)return!1;b(f);const C=f.currentPeek()===".";return f.resetPeek(),C}function A(f,d){const{currentType:g}=d;if(g!==9)return!1;b(f);const C=h(f.currentPeek());return f.resetPeek(),C}function x(f,d){const{currentType:g}=d;if(!(g===8||g===12))return!1;b(f);const C=f.currentPeek()===":";return f.resetPeek(),C}function M(f,d){const{currentType:g}=d;if(g!==10)return!1;const C=()=>{const F=f.currentPeek();return F==="{"?h(f.peek()):F==="@"||F==="%"||F==="|"||F===":"||F==="."||F===Lt||!F?!1:F===Ye?(f.peek(),C()):h(F)},N=C();return f.resetPeek(),N}function W(f){b(f);const d=f.currentPeek()==="|";return f.resetPeek(),d}function Z(f){const d=b(f),g=f.currentPeek()==="%"&&f.peek()==="{";return f.resetPeek(),{isModulo:g,hasSpace:d.length>0}}function H(f,d=!0){const g=(N=!1,F="",$=!1)=>{const U=f.currentPeek();return U==="{"?F==="%"?!1:N:U==="@"||!U?F==="%"?!0:N:U==="%"?(f.peek(),g(N,"%",!0)):U==="|"?F==="%"||$?!0:!(F===Lt||F===Ye):U===Lt?(f.peek(),g(!0,Lt,$)):U===Ye?(f.peek(),g(!0,Ye,$)):!0},C=g();return d&&f.resetPeek(),C}function se(f,d){const g=f.currentChar();return g===Bt?Bt:d(g)?(f.next(),g):null}function Se(f){return se(f,g=>{const C=g.charCodeAt(0);return C>=97&&C<=122||C>=65&&C<=90||C>=48&&C<=57||C===95||C===36})}function Pe(f){return se(f,g=>{const C=g.charCodeAt(0);return C>=48&&C<=57})}function te(f){return se(f,g=>{const C=g.charCodeAt(0);return C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102})}function pe(f){let d="",g="";for(;d=Pe(f);)g+=d;return g}function ae(f){S(f);const d=f.currentChar();return d!=="%"&&p(Q.EXPECTED_TOKEN,s(),0,d),f.next(),"%"}function Be(f){let d="";for(;;){const g=f.currentChar();if(g==="{"||g==="}"||g==="@"||g==="|"||!g)break;if(g==="%")if(H(f))d+=g,f.next();else break;else if(g===Lt||g===Ye)if(H(f))d+=g,f.next();else{if(W(f))break;d+=g,f.next()}else d+=g,f.next()}return d}function qe(f){S(f);let d="",g="";for(;d=Se(f);)g+=d;return f.currentChar()===Bt&&p(Q.UNTERMINATED_CLOSING_BRACE,s(),0),g}function We(f){S(f);let d="";return f.currentChar()==="-"?(f.next(),d+=`-${pe(f)}`):d+=pe(f),f.currentChar()===Bt&&p(Q.UNTERMINATED_CLOSING_BRACE,s(),0),d}function xe(f){S(f),y(f,"'");let d="",g="";const C=F=>F!==zl&&F!==Ye;for(;d=se(f,C);)d==="\\"?g+=ot(f):g+=d;const N=f.currentChar();return N===Ye||N===Bt?(p(Q.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),N===Ye&&(f.next(),y(f,"'")),g):(y(f,"'"),g)}function ot(f){const d=f.currentChar();switch(d){case"\\":case"'":return f.next(),`\\${d}`;case"u":return at(f,d,4);case"U":return at(f,d,6);default:return p(Q.UNKNOWN_ESCAPE_SEQUENCE,s(),0,d),""}}function at(f,d,g){y(f,d);let C="";for(let N=0;N<g;N++){const F=te(f);if(!F){p(Q.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${d}${C}${f.currentChar()}`);break}C+=F}return`\\${d}${C}`}function yt(f){S(f);let d="",g="";const C=N=>N!=="{"&&N!=="}"&&N!==Lt&&N!==Ye;for(;d=se(f,C);)g+=d;return g}function Ne(f){let d="",g="";for(;d=Se(f);)g+=d;return g}function R(f){const d=(g=!1,C)=>Line truncated
|
||||
`,a=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],l=LE(e,{mode:n,filename:r,sourceMap:o,breakLineCode:s,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),i.length>0&&(l.push(`const { ${ed(i.map(p=>`${p}: _${p}`),", ")} } = ctx`),l.newline()),l.push("return "),Gn(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function kE(e,t={}){const n=Zf({},t),r=!!n.jit,o=!!n.minify,s=n.optimize==null?!0:n.optimize,i=wE(n).parse(e);return r?(s&&OE(i),o&&In(i),{ast:i,code:""}):(TE(i,n),RE(i,n))}/*!
|
||||
* devtools-if v9.3.0
|
||||
* (c) 2023 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/const td={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
|
||||
* core-base v9.3.0
|
||||
* (c) 2023 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/function FE(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(xt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(xt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(xt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const sn=[];sn[0]={w:[0],i:[3,0],"[":[4],o:[7]};sn[1]={w:[1],".":[2],"[":[4],o:[7]};sn[2]={w:[2],i:[3,0],0:[3,0]};sn[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};sn[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};sn[5]={"'":[4,0],o:8,l:[5,0]};sn[6]={'"':[4,0],o:8,l:[6,0]};const ME=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function DE(e){return ME.test(e)}function $E(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function UE(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function BE(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:DE(t)?$E(t):"*"+t}function HE(e){const t=[];let n=-1,r=0,o=0,s,a,i,l,c,u,p;const m=[];m[0]=()=>{a===void 0?a=i:a+=i},m[1]=()=>{a!==void 0&&(t.push(a),a=void 0)},m[2]=()=>{m[0](),o++},m[3]=()=>{if(o>0)o--,r=4,m[0]();else{if(o=0,a===void 0||(a=BE(a),a===!1))return!1;m[1]()}};function _(){const y=e[n+1];if(r===5&&y==="'"||r===6&&y==='"')return n++,i="\\"+y,m[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&_())){if(l=UE(s),p=sn[r],c=p[l]||p.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=m[c[1]],u&&(i=s,u()===!1))))return;if(r===7)return t}}const Gl=new Map;function jE(e,t){return ye(e)?e[t]:null}function VE(e,t){if(!ye(e))return null;let n=Gl.get(t);if(n||(n=HE(t),n&&Gl.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;s<r;){const a=o[n[s]];if(a===void 0)return null;o=a,s++}return o}const zE=e=>e,WE=e=>"",KE="text",GE=e=>e.length===0?"":sE(e),YE=rE;function Yl(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function qE(e){const t=Fe(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Fe(e.named.count)||Fe(e.named.n))?Fe(e.named.count)?e.named.count:Fe(e.named.n)?e.named.n:t:t}function JE(e,t){t.count||(t.count=e),t.n||(t.n=e)}function XE(e={}){const t=e.locale,n=qE(e),r=ye(e.pluralRules)&&j(t)&&Ae(e.pluralRules[t])?e.pluralRules[t]:Yl,o=ye(e.pluralRules)&&j(t)&&Ae(e.pluralRules[t])?Yl:void 0,s=h=>h[r(n,h.length,o)],a=e.list||[],i=h=>a[h],l=e.named||{};Fe(e.pluralIndex)&&JE(n,l);const c=h=>l[h];function u(h){const w=Ae(e.messages)?e.messages(h):ye(e.messages)?e.messages[h]:!1;return w||(e.parent?e.parent.message(h):WE)}const p=h=>e.modifiers?e.modifiers[h]:zE,m=re(e.processor)&&Ae(e.processor.normalize)?e.processor.normalize:GE,_=re(e.processor)&&Ae(e.processor.interpolate)?e.processor.interpolate:YE,y=re(e.processor)&&j(e.processor.type)?e.processor.type:KE,S={list:i,named:c,plural:s,linked:(h,...w)=>{const[O,E]=w;let I="text",L="";w.length===1?ye(O)?(L=O.modifier||L,I=O.type||I):j(O)&&(L=O||L):w.length===2&&(j(O)&&(L=O||L),j(E)&&(I=E||I));const A=u(h)(S),x=I==="vnode"&&Oe(A)&&L?A[0]:A;return L?p(L)(x,I):x},message:u,type:y,interpolate:_,normalize:m,values:ze({},a,l)};return S}let xr=null;function QE(e){xr=e}function ZE(e,t,n){xr&&xr.emit(td.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const e4=t4(td.FunctionTranslate);function t4(e){return t=>xr&&xr.emit(e,t)}const n4={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function r4(e,t,n){return[...new Set([n,...Oe(t)?t:ye(t)?Object.keys(t):j(t)?[t]:[n]])]}function nd(e,t,n){const r=j(n)?n:Hr,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let a=[n];for(;Oe(a);)a=ql(s,a,t);const i=Oe(t)||!re(t)?t:t.default?t.default:null;a=j(i)?[i]:i,Oe(a)&&ql(s,a,!1),o.__localeChainCache.set(r,s)}return s}function ql(e,t,n){let r=!0;for(let o=0;o<t.length&&le(r);o++){const s=t[o];j(s)&&(r=s4(e,t[o],n))}return r}function s4(e,t,n){let r;const o=t.split("-");do{const s=o.join("-");r=o4(e,s,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function o4(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(Oe(n)||re(n))&&n[o]&&(r=n[o])}return r}const a4="9.3.0",eo=-1,Hr="en-US",Jl="",Xl=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function i4(){return{upper:(e,t)=>t==="text"&&j(e)?e.toUpperCase():t==="vnode"&&ye(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&j(e)?e.toLowerCase():t==="vnode"&&ye(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&j(e)?Xl(e):t==="vnode"&&ye(e)&&"__v_isVNode"in e?Xl(e.children):e}}let rd;function Ql(e){rd=e}let sd;function l4(e){sd=e}let od;function c4(e){od=e}let ad=null;const Zl=e=>{ad=e},u4=()=>ad;let id=null;const ec=e=>{id=e},f4=()=>id;let tc=0;fuLine truncated
|
||||
* vue-i18n v9.3.0
|
||||
* (c) 2023 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/const b4="9.3.0";function E4(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(xt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(xt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(xt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(xt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(xt().__INTLIFY_PROD_DEVTOOLS__=!1)}const hd=n4.__EXTEND_POINT__,Ht=Ga(hd);Ht(),Ht(),Ht(),Ht(),Ht(),Ht(),Ht(),Ht();const _d=Gt.__EXTEND_POINT__,Je=Ga(_d),Re={UNEXPECTED_RETURN_TYPE:_d,INVALID_ARGUMENT:Je(),MUST_BE_CALL_SETUP_TOP:Je(),NOT_INSTALLED:Je(),NOT_AVAILABLE_IN_LEGACY_MODE:Je(),REQUIRED_VALUE:Je(),INVALID_VALUE:Je(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Je(),NOT_INSTALLED_WITH_PROVIDE:Je(),UNEXPECTED_ERROR:Je(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Je(),BRIDGE_SUPPORT_VUE_2_ONLY:Je(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Je(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Je(),__EXTEND_POINT__:Je()};function Me(e,...t){return Qn(e,null,void 0)}const Qo=rn("__translateVNode"),Zo=rn("__datetimeParts"),ea=rn("__numberParts"),gd=rn("__setPluralRules"),vd=rn("__injectWithOption"),ta=rn("__dispose");function na(e){if(!ye(e))return e;for(const t in e)if(Ka(e,t))if(!t.includes("."))ye(e[t])&&na(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,s=!1;for(let a=0;a<r;a++){if(n[a]in o||(o[n[a]]={}),!ye(o[n[a]])){s=!0;break}o=o[n[a]]}s||(o[n[r]]=e[t],delete e[t]),ye(o[n[r]])&&na(o[n[r]])}return e}function to(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:s}=t,a=re(n)?n:Oe(r)?{}:{[e]:{}};if(Oe(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:l,resource:c}=i;l?(a[l]=a[l]||{},_r(c,a[l])):_r(c,a)}else j(i)&&_r(JSON.parse(i),a)}),o==null&&s)for(const i in a)Ka(a,i)&&na(a[i]);return a}const Jr=e=>!ye(e)||Oe(e);function _r(e,t){if(Jr(e)||Jr(t))throw Me(Re.INVALID_VALUE);for(const n in e)Ka(e,n)&&(Jr(e[n])||Jr(t[n])?t[n]=e[n]:_r(e[n],t[n]))}function yd(e){return e.type}function bd(e,t,n){let r=ye(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=to(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(ye(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(a=>{e.mergeDateTimeFormat(a,t.datetimeFormats[a])})}if(ye(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(a=>{e.mergeNumberFormat(a,t.numberFormats[a])})}}}function cc(e){return Le(Mr,null,e,0)}const uc="__INTLIFY_META__";let fc=0;function dc(e){return(t,n,r,o)=>e(n,r,et()||void 0,o)}const w4=()=>{const e=et();let t=null;return e&&(t=yd(e)[uc])?{[uc]:t}:null};function Ja(e={},t){const{__root:n,__injectWithOption:r}=e,o=n===void 0;let s=le(e.inheritLocale)?e.inheritLocale:!0;const a=ue(n&&s?n.locale.value:j(e.locale)?e.locale:Hr),i=ue(n&&s?n.fallbackLocale.value:j(e.fallbackLocale)||Oe(e.fallbackLocale)||re(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),l=ue(to(a.value,e)),c=ue(re(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),u=ue(re(e.numberFormats)?e.numberFormats:{[a.value]:{}});let p=n?n.missingWarn:le(e.missingWarn)||nn(e.missingWarn)?e.missingWarn:!0,m=n?n.fallbackWarn:le(e.fallbackWarn)||nn(e.fallbackWarn)?e.fallbackWarn:!0,_=n?n.fallbackRoot:le(e.fallbackRoot)?e.fallbackRoot:!0,y=!!e.fallbackFormat,b=Ae(e.missing)?e.missing:null,S=Ae(e.missing)?dc(e.missing):null,h=Ae(e.postTranslation)?e.postTranslation:null,w=n?n.warnHtmlMessage:le(e.warnHtmlMessage)?e.warnHtmlMessage:!0,O=!!e.escapeParameter;const E=n?n.modifiers:re(e.modifiers)?e.modifiers:{};let I=e.pluralRules||n&&n.pluralRules,L;L=(()=>{o&&ec(null);const T={version:b4,locale:a.value,fallbackLocale:i.value,messages:l.value,modifiers:E,pluralRules:I,missing:S===null?void 0:S,missingWarn:p,fallbackWarn:m,fallbackFormat:y,unresolving:!0,postTranslation:h===null?void 0:h,warnHtmlMessage:w,escapeParameter:O,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};T.datetimeFormats=c.value,T.numberFormats=u.value,T.__datetimeFormatters=re(L)?L.__datetimeFormatters:void 0,T.__numberFormatters=re(L)?L.__numberFormatters:void 0;const P=d4(T);return o&&ec(P),P})(),or(L,a.value,i.value);function x(){return[a.value,i.value,l.value,c.value,u.value]}const M=Y({get:()=>a.value,set:T=>{a.value=T,L.locale=a.value}}),W=Y({get:()=>i.value,set:T=>{i.value=T,L.fallbackLocale=i.value,or(L,a.value,T)}}),Z=Y(()=>l.value),H=Y(()=>c.value),se=Y(()=>u.value);function Se(){return Ae(h)?h:null}function Pe(T){h=T,L.postTranslation=T}function te(){return b}function pe(T){T!==null&&(S=dc(T)),b=T,L.missing=S}const ae=(T,P,q,X,_e,me)=>{x();let we;try{__INTLIFY_PROD_DEVTOOLS__&&Zl(w4()),o||(L.fallbackContext=n?f4():void 0),we=T(L)}finally{__INTLIFY_PROD_DEVTOOLS__&&Zl(null),o||(L.fallbackContext=void 0)}if(Fe(we)&&we===eo){const[nt,on]=P();return n&&_?X(n):_e(nt)}else{if(me(we))return we;throw Me(Re.UNEXPECTED_RETURN_TYPELine truncated
|
||||
@@ -0,0 +1 @@
|
||||
@charset "UTF-8";:root{--vt-c-white: #ffffff;--vt-c-white-soft: #f5f5f5;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #212121;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0}html{background:var(--vt-c-white-soft)}html.dark{background:var(--vt-c-black-soft)}body{color:var(--color-text);display:flex;justify-content:center;align-items:center;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app{display:flex;flex-direction:column;justify-content:center;min-height:100vh}.card{max-width:400px;min-width:398px;height:100%;background-color:#f8fbfe;box-shadow:0 2px 12px #0000001a;border-radius:20px!important;position:relative}.tools{display:flex;z-index:999;align-items:center}.box{display:inline-block;align-items:center;width:1.5rem;height:1.5rem;-webkit-user-select:none;user-select:none;cursor:pointer;padding:1px;border-radius:50%}.circle{padding:0 4px}.red{padding:3px;background-color:#ff605c}.yellow{padding:3px;background-color:#ffbd44}.green{background-color:#00ca4e;padding:3px}:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-daLine truncated
|
||||
@@ -1 +0,0 @@
|
||||
@charset "UTF-8";:root{--vt-c-white: #ffffff;--vt-c-white-soft: #f5f5f5;--vt-c-white-mute: #f2f2f2;--vt-c-black: #181818;--vt-c-black-soft: #212121;--vt-c-black-mute: #282828;--vt-c-indigo: #2c3e50;--vt-c-divider-light-1: rgba(60, 60, 60, .29);--vt-c-divider-light-2: rgba(60, 60, 60, .12);--vt-c-divider-dark-1: rgba(84, 84, 84, .65);--vt-c-divider-dark-2: rgba(84, 84, 84, .48);--vt-c-text-light-1: var(--vt-c-indigo);--vt-c-text-light-2: rgba(60, 60, 60, .66);--vt-c-text-dark-1: var(--vt-c-white);--vt-c-text-dark-2: rgba(235, 235, 235, .64)}:root{--color-background: var(--vt-c-white);--color-background-soft: var(--vt-c-white-soft);--color-background-mute: var(--vt-c-white-mute);--color-border: var(--vt-c-divider-light-2);--color-border-hover: var(--vt-c-divider-light-1);--color-heading: var(--vt-c-text-light-1);--color-text: var(--vt-c-text-light-1);--section-gap: 160px}@media (prefers-color-scheme: dark){:root{--color-background: var(--vt-c-black);--color-background-soft: var(--vt-c-black-soft);--color-background-mute: var(--vt-c-black-mute);--color-border: var(--vt-c-divider-dark-2);--color-border-hover: var(--vt-c-divider-dark-1);--color-heading: var(--vt-c-text-dark-1);--color-text: var(--vt-c-text-dark-2)}}*,*:before,*:after{box-sizing:border-box;margin:0}html{background:var(--vt-c-white-soft)}html.dark{background:var(--vt-c-black-soft)}body{color:var(--color-text);display:flex;justify-content:center;align-items:center;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app{display:flex;flex-direction:column;justify-content:center;min-height:100vh}.card{max-width:400px;height:100%;background-color:#f8fbfe;box-shadow:0 2px 12px #0000001a;border-radius:20px!important;position:relative}.tools{display:flex;z-index:999;align-items:center}.box{display:inline-block;align-items:center;width:1.5rem;height:1.5rem;-webkit-user-select:none;user-select:none;cursor:pointer;padding:1px;border-radius:50%}.circle{padding:0 4px}.red{padding:3px;background-color:#ff605c}.yellow{padding:3px;background-color:#ffbd44}.green{background-color:#00ca4e;padding:3px}:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645, .045, .355, 1);--el-transition-function-fast-bezier:cubic-bezier(.23, 1, .32, 1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--eLine truncated
|
||||
@@ -1,31 +0,0 @@
|
||||
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Cs(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}const me={},tn=[],et=()=>{},Ja=()=>!1,Qa=/^on[^a-z]/,gr=e=>Qa.test(e),Ls=e=>e.startsWith("onUpdate:"),ve=Object.assign,Is=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},za=Object.prototype.hasOwnProperty,ie=(e,t)=>za.call(e,t),G=Array.isArray,nn=e=>Bn(e)==="[object Map]",Er=e=>Bn(e)==="[object Set]",fo=e=>Bn(e)==="[object Date]",ee=e=>typeof e=="function",be=e=>typeof e=="string",Sn=e=>typeof e=="symbol",fe=e=>e!==null&&typeof e=="object",ql=e=>fe(e)&&ee(e.then)&&ee(e.catch),Jl=Object.prototype.toString,Bn=e=>Jl.call(e),Za=e=>Bn(e).slice(8,-1),Ql=e=>Bn(e)==="[object Object]",Ns=e=>be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,or=Cs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),br=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ec=/-(\w)/g,at=br(e=>e.replace(ec,(t,n)=>n?n.toUpperCase():"")),tc=/\B([A-Z])/g,Xt=br(e=>e.replace(tc,"-$1").toLowerCase()),yr=br(e=>e.charAt(0).toUpperCase()+e.slice(1)),lr=br(e=>e?`on${yr(e)}`:""),kn=(e,t)=>!Object.is(e,t),ir=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ur=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Gr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},nc=e=>{const t=be(e)?Number(e):NaN;return isNaN(t)?e:t};let mo;const Xr=()=>mo||(mo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Os(e){if(G(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=be(r)?lc(r):Os(r);if(o)for(const s in o)t[s]=o[s]}return t}else{if(be(e))return e;if(fe(e))return e}}const rc=/;(?![^(]*\))/g,sc=/:([^]+)/,oc=/\/\*[^]*?\*\//g;function lc(e){const t={};return e.replace(oc,"").split(rc).forEach(n=>{if(n){const r=n.split(sc);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ps(e){let t="";if(be(e))t=e;else if(G(e))for(let n=0;n<e.length;n++){const r=Ps(e[n]);r&&(t+=r+" ")}else if(fe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const ic="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ac=Cs(ic);function zl(e){return!!e||e===""}function cc(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=on(e[r],t[r]);return n}function on(e,t){if(e===t)return!0;let n=fo(e),r=fo(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Sn(e),r=Sn(t),n||r)return e===t;if(n=G(e),r=G(t),n||r)return n&&r?cc(e,t):!1;if(n=fe(e),r=fe(t),n||r){if(!n||!r)return!1;const o=Object.keys(e).length,s=Object.keys(t).length;if(o!==s)return!1;for(const l in e){const i=e.hasOwnProperty(l),a=t.hasOwnProperty(l);if(i&&!a||!i&&a||!on(e[l],t[l]))return!1}}return String(e)===String(t)}function Zl(e,t){return e.findIndex(n=>on(n,t))}const qh=e=>be(e)?e:e==null?"":G(e)||fe(e)&&(e.toString===Jl||!ee(e.toString))?JSON.stringify(e,ei,2):String(e),ei=(e,t)=>t&&t.__v_isRef?ei(e,t.value):nn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:Er(t)?{[`Set(${t.size})`]:[...t.values()]}:fe(t)&&!G(t)&&!Ql(t)?String(t):t;let Be;class ti{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Be,!t&&Be&&(this.index=(Be.scopes||(Be.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Be;try{return Be=this,t()}finally{Be=n}}}on(){Be=this}off(){Be=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0,this._active=!1}}}function As(e){return new ti(e)}function uc(e,t=Be){t&&t.active&&t.effects.push(e)}function ni(){return Be}function fc(e){Be&&Be.cleanups.push(e)}const Rs=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ri=e=>(e.w&St)>0,si=e=>(e.n&St)>0,dc=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=St},mc=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const o=t[r];ri(oLine truncated
|
||||
* pinia v2.1.6
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/let ua;const Ar=e=>ua=e,fa=Symbol();function ls(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var On;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(On||(On={}));function Ff(){const e=As(!0),t=e.run(()=>He({}));let n=[],r=[];const o=Tr({install(s){Ar(o),o._a=s,s.provide(fa,o),s.config.globalProperties.$pinia=o,r.forEach(l=>n.push(l)),r=[]},use(s){return!this._a&&!wf?r.push(s):n.push(s),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const da=()=>{};function zo(e,t,n,r=da){e.push(t);const o=()=>{const s=e.indexOf(t);s>-1&&(e.splice(s,1),r())};return!n&&ni()&&fc(o),o}function Jt(e,...t){e.slice().forEach(n=>{n(...t)})}const Mf=e=>e();function is(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,r)=>e.set(r,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];ls(o)&&ls(r)&&e.hasOwnProperty(n)&&!_e(r)&&!Pt(r)?e[n]=is(o,r):e[n]=r}return e}const xf=Symbol();function Df(e){return!ls(e)||!e.hasOwnProperty(xf)}const{assign:Tt}=Object;function Uf(e){return!!(_e(e)&&e.effect)}function $f(e,t,n,r){const{state:o,actions:s,getters:l}=t,i=n.state.value[e];let a;function f(){i||(n.state.value[e]=o?o():{});const d=Wc(n.state.value[e]);return Tt(d,s,Object.keys(l||{}).reduce((h,m)=>(h[m]=Tr(Ee(()=>{Ar(n);const E=n._s.get(e);return l[m].call(E,E)})),h),{}))}return a=ma(e,f,t,n,r,!0),a}function ma(e,t,n={},r,o,s){let l;const i=Tt({actions:{}},n),a={deep:!0};let f,d,h=[],m=[],E;const L=r.state.value[e];!s&&!L&&(r.state.value[e]={}),He({});let O;function R(F){let U;f=d=!1,typeof F=="function"?(F(r.state.value[e]),U={type:On.patchFunction,storeId:e,events:E}):(is(r.state.value[e],F),U={type:On.patchObject,payload:F,storeId:e,events:E});const K=O=Symbol();$s().then(()=>{O===K&&(f=!0)}),d=!0,Jt(h,U,r.state.value[e])}const g=s?function(){const{state:U}=n,K=U?U():{};this.$patch(J=>{Tt(J,K)})}:da;function T(){l.stop(),h=[],m=[],r._s.delete(e)}function P(F,U){return function(){Ar(r);const K=Array.from(arguments),J=[],H=[];function Z(Q){J.push(Q)}function pe(Q){H.push(Q)}Jt(m,{args:K,name:F,store:S,after:Z,onError:pe});let ye;try{ye=U.apply(this&&this.$id===e?this:S,K)}catch(Q){throw Jt(H,Q),Q}return ye instanceof Promise?ye.then(Q=>(Jt(J,Q),Q)).catch(Q=>(Jt(H,Q),Promise.reject(Q))):(Jt(J,ye),ye)}}const y={_p:r,$id:e,$onAction:zo.bind(null,m),$patch:R,$reset:g,$subscribe(F,U={}){const K=zo(h,F,U.detached,()=>J()),J=l.run(()=>Rt(()=>r.state.value[e],H=>{(U.flush==="sync"?d:f)&&F({storeId:e,type:On.direct,events:E},H)},Tt({},a,U)));return K},$dispose:T},S=Kn(y);r._s.set(e,S);const N=r._a&&r._a.runWithContext||Mf,D=r._e.run(()=>(l=As(),N(()=>l.run(t))));for(const F in D){const U=D[F];if(_e(U)&&!Uf(U)||Pt(U))s||(L&&Df(U)&&(_e(U)?U.value=L[F]:is(U,L[F])),r.state.value[e][F]=U);else if(typeof U=="function"){const K=P(F,U);D[F]=K,i.actions[F]=U}}return Tt(S,D),Tt(se(S),D),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:F=>{R(U=>{Tt(U,F)})}}),r._p.forEach(F=>{Tt(S,l.run(()=>F({store:S,app:r._a,pinia:r,options:i})))}),L&&s&&n.hydrate&&n.hydrate(S.$state,L),f=!0,d=!0,S}function bp(e,t,n){let r,o;const s=typeof t=="function";typeof e=="string"?(r=e,o=s?n:t):(o=e,r=e.id);function l(i,a){const f=Nu();return i=i||(f?Ke(fa,null):null),i&&Ar(i),i=ua,i._s.has(r)||(s?ma(r,t,o,i):$f(r,o,i)),i._s.get(r)}return l.$id=r,l}const Hf=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Wf={};function Vf(e,t){const n=gu("RouterView");return Js(),$u("div",null,[Re(n)])}const jf=Hf(Wf,[["render",Vf]]),Bf="modulepreload",Kf=function(e){return"/"+e},Zo={},Qt=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Kf(s),s in Zo)return;Zo[s]=!0;const l=s.endsWith(".css"),i=l?'[rel="stylesheet"]':"";if(!!r)for(let d=o.length-1;d>=0;d--){const h=o[d];if(h.href===s&&(!l||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${i}`))return;const f=document.createElement("link");if(f.rel=l?"stylesheet":Bf,l||(f.as="script",f.crossOrigin=""),f.href=s,document.head.appendChild(f),l)return new Promise((d,h)=>{f.addEventListener("load",d),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=s,window.dispatchEvent(l),!l.defaultPrevented)throw s})};/*!
|
||||
* vue-router v4.2.4
|
||||
* (c) 2023 Eduardo San Martin Morote
|
||||
* @license MIT
|
||||
*/const zt=typeof window<"u";function Yf(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const ce=Object.assign;function jr(e,t){const n={};for(const r in t){const o=t[r];n[r]=tt(o)?o.map(e):e(o)}return n}const Pn=()=>{},tt=Array.isArray,Gf=/\/$/,Xf=e=>e.replace(Gf,"");function Br(e,t,n="/"){let r,o={},s="",l="";const i=t.indexOf("#");let a=t.indexOf("?");return i<a&&i>=0&&(a=-1),a>-1&&(r=t.slice(0,a),s=t.slice(a+1,i>-1?i:t.length),o=e(s)),i>-1&&(r=r||t.slice(0,i),l=t.slice(i,t.length)),r=zf(r??t,n),{fullPath:r+(s&&"?")+s+l,path:r,query:o,hash:l}}function qf(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function el(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Jf(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&un(t.matched[r],n.matched[o])&&ha(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function un(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ha(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Qf(e[n],t[n]))return!1;return!0}function Qf(e,t){return tt(e)?tl(e,t):tt(t)?tl(t,e):e===t}function tl(e,t){return tt(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function zf(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let s=n.length-1,l,i;for(l=0;l<r.length;l++)if(i=r[l],i!==".")if(i==="..")s>1&&s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(l-(l===r.length?1:0)).join("/")}var Wn;(function(e){e.pop="pop",e.push="push"})(Wn||(Wn={}));var An;(function(e){e.back="back",e.forward="forward",e.unknown=""})(An||(An={}));function Zf(e){if(!e)if(zt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Xf(e)}const ed=/^[^#]+#/;function td(e,t){return e.replace(ed,"#")+t}function nd(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Rr=()=>({left:window.pageXOffset,top:window.pageYOffset});function rd(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=nd(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function nl(e,t){return(history.state?history.state.position-t:-1)+e}const as=new Map;function sd(e,t){as.set(e,t)}function od(e){const t=as.get(e);return as.delete(e),t}let ld=()=>location.protocol+"//"+location.host;function pa(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let i=o.includes(e.slice(s))?e.slice(s).length:1,a=o.slice(i);return a[0]!=="/"&&(a="/"+a),el(a,"")}return el(n,e)+r+o}function id(e,t,n,r){let o=[],s=[],l=null;const i=({state:m})=>{const E=pa(e,location),L=n.value,O=t.value;let R=0;if(m){if(n.value=E,t.value=m,l&&l===L){l=null;return}R=O?m.position-O.position:0}else r(E);o.forEach(g=>{g(n.value,L,{delta:R,type:Wn.pop,direction:R?R>0?An.forward:An.back:An.unknown})})};function a(){l=n.value}function f(m){o.push(m);const E=()=>{const L=o.indexOf(m);L>-1&&o.splice(L,1)};return s.push(E),E}function d(){const{history:m}=window;m.state&&m.replaceState(ce({},m.state,{scroll:Rr()}),"")}function h(){for(const m of s)m();s=[],window.removeEventListener("popstate",i),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",i),window.addEventListener("beforeunload",d,{passive:!0}),{pauseListeners:a,listen:f,destroy:h}}function rl(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?Rr():null}}function ad(e){const{history:t,location:n}=window,r={value:pa(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(a,f,d){const h=e.indexOf("#"),m=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+a:ld()+e+a;try{t[d?"replaceState":"pushState"](f,"",m),o.value=f}catch(E){console.error(E),n[d?"replace":"assign"](m)}}function l(a,f){const d=ce({},t.state,rl(o.value.back,a,o.value.forward,!0),f,{position:o.value.position});s(a,d,!0),r.value=a}function i(a,f){const d=ce({},o.value,t.state,{forward:a,scroll:Rr()});s(d.current,d,!0);const h=ce({},rl(r.value,a,null),{position:d.position+1},f);s(a,h,!1),r.value=a}return{location:r,state:o,push:i,replace:l}}function cd(e){e=Zf(e);const t=ad(e),n=id(e,t.state,t.location,t.replace);function r(s,l=!0){l||n.pauseListeners(),history.go(s)}const o=ce({location:"",base:e,go:r,createHref:td.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerLine truncated
|
||||
* shared v9.3.0
|
||||
* (c) 2023 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/const fs=typeof window<"u",Mt=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Qd=(e,t,n)=>zd({l:e,k:t,s:n}),zd=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Ne=e=>typeof e=="number"&&isFinite(e),Zd=e=>Ia(e)==="[object Date]",Ft=e=>Ia(e)==="[object RegExp]",kr=e=>z(e)&&Object.keys(e).length===0,Se=Object.assign;let _l;const mt=()=>_l||(_l=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function gl(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const em=Object.prototype.hasOwnProperty;function to(e,t){return em.call(e,t)}const he=Array.isArray,Ce=e=>typeof e=="function",W=e=>typeof e=="string",re=e=>typeof e=="boolean",ue=e=>e!==null&&typeof e=="object",La=Object.prototype.toString,Ia=e=>La.call(e),z=e=>{if(!ue(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t.constructor===Object},tm=e=>e==null?"":he(e)||z(e)&&e.toString===La?JSON.stringify(e,null,2):String(e);function nm(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}function no(e){let t=e;return()=>++t}function rm(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}/*!
|
||||
* message-compiler v9.3.0
|
||||
* (c) 2023 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/function sm(e,t,n){return{line:e,column:t,offset:n}}function ds(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const om=/\{([0-9a-zA-Z]+)\}/g;function lm(e,...t){return t.length===1&&im(t[0])&&(t=t[0]),(!t||!t.hasOwnProperty)&&(t={}),e.replace(om,(n,r)=>t.hasOwnProperty(r)?t[r]:"")}const Na=Object.assign,El=e=>typeof e=="string",im=e=>e!==null&&typeof e=="object";function Oa(e,t=""){return e.reduce((n,r,o)=>o===0?n+r:n+t+r,"")}const q={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},am={[q.EXPECTED_TOKEN]:"Expected token: '{0}'",[q.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[q.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[q.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[q.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[q.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[q.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[q.EMPTY_PLACEHOLDER]:"Empty placeholder",[q.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[q.INVALID_LINKED_FORMAT]:"Invalid linked format",[q.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[q.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[q.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[q.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[q.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[q.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function pn(e,t,n={}){const{domain:r,messages:o,args:s}=n,l=lm((o||am)[e]||"",...s||[]),i=new SyntaxError(String(l));return i.code=e,t&&(i.location=t),i.domain=r,i}function cm(e){throw e}const ut=" ",um="\r",Me=`
|
||||
`,fm=String.fromCharCode(8232),dm=String.fromCharCode(8233);function mm(e){const t=e;let n=0,r=1,o=1,s=0;const l=D=>t[D]===um&&t[D+1]===Me,i=D=>t[D]===Me,a=D=>t[D]===dm,f=D=>t[D]===fm,d=D=>l(D)||i(D)||a(D)||f(D),h=()=>n,m=()=>r,E=()=>o,L=()=>s,O=D=>l(D)||a(D)||f(D)?Me:t[D],R=()=>O(n),g=()=>O(n+s);function T(){return s=0,d(n)&&(r++,o=0),l(n)&&n++,n++,o++,t[n]}function P(){return l(n+s)&&s++,s++,t[n+s]}function y(){n=0,r=1,o=1,s=0}function S(D=0){s=D}function N(){const D=n+s;for(;D!==n;)T();s=0}return{index:h,line:m,column:E,peekOffset:L,charAt:O,currentChar:R,currentPeek:g,next:T,peek:P,reset:y,resetPeek:S,skipToPeek:N}}const bt=void 0,hm=".",bl="'",pm="tokenizer";function _m(e,t={}){const n=t.location!==!1,r=mm(e),o=()=>r.index(),s=()=>sm(r.line(),r.column(),r.index()),l=s(),i=o(),a={currentType:14,offset:i,startLoc:l,endLoc:l,lastType:14,lastOffset:i,lastStartLoc:l,lastEndLoc:l,braceNest:0,inLinked:!1,text:""},f=()=>a,{onError:d}=t;function h(c,u,p,...b){const C=f();if(u.column+=p,u.offset+=p,d){const k=n?ds(C.startLoc,u):null,M=pn(c,k,{domain:pm,args:b});d(M)}}function m(c,u,p){c.endLoc=s(),c.currentType=u;const b={type:u};return n&&(b.loc=ds(c.startLoc,c.endLoc)),p!=null&&(b.value=p),b}const E=c=>m(c,14);function L(c,u){return c.currentChar()===u?(c.next(),u):(h(q.EXPECTED_TOKEN,s(),0,u),"")}function O(c){let u="";for(;c.currentPeek()===ut||c.currentPeek()===Me;)u+=c.currentPeek(),c.peek();return u}function R(c){const u=O(c);return c.skipToPeek(),u}function g(c){if(c===bt)return!1;const u=c.charCodeAt(0);return u>=97&&u<=122||u>=65&&u<=90||u===95}function T(c){if(c===bt)return!1;const u=c.charCodeAt(0);return u>=48&&u<=57}function P(c,u){const{currentType:p}=u;if(p!==2)return!1;O(c);const b=g(c.currentPeek());return c.resetPeek(),b}function y(c,u){const{currentType:p}=u;if(p!==2)return!1;O(c);const b=c.currentPeek()==="-"?c.peek():c.currentPeek(),C=T(b);return c.resetPeek(),C}function S(c,u){const{currentType:p}=u;if(p!==2)return!1;O(c);const b=c.currentPeek()===bl;return c.resetPeek(),b}function N(c,u){const{currentType:p}=u;if(p!==8)return!1;O(c);const b=c.currentPeek()===".";return c.resetPeek(),b}function D(c,u){const{currentType:p}=u;if(p!==9)return!1;O(c);const b=g(c.currentPeek());return c.resetPeek(),b}function F(c,u){const{currentType:p}=u;if(!(p===8||p===12))return!1;O(c);const b=c.currentPeek()===":";return c.resetPeek(),b}function U(c,u){const{currentType:p}=u;if(p!==10)return!1;const b=()=>{const k=c.currentPeek();return k==="{"?g(c.peek()):k==="@"||k==="%"||k==="|"||k===":"||k==="."||k===ut||!k?!1:k===Me?(c.peek(),b()):g(k)},C=b();return c.resetPeek(),C}function K(c){O(c);const u=c.currentPeek()==="|";return c.resetPeek(),u}function J(c){const u=O(c),p=c.currentPeek()==="%"&&c.peek()==="{";return c.resetPeek(),{isModulo:p,hasSpace:u.length>0}}function H(c,u=!0){const p=(C=!1,k="",M=!1)=>{const x=c.currentPeek();return x==="{"?k==="%"?!1:C:x==="@"||!x?k==="%"?!0:C:x==="%"?(c.peek(),p(C,"%",!0)):x==="|"?k==="%"||M?!0:!(k===ut||k===Me):x===ut?(c.peek(),p(!0,ut,M)):x===Me?(c.peek(),p(!0,Me,M)):!0},b=p();return u&&c.resetPeek(),b}function Z(c,u){const p=c.currentChar();return p===bt?bt:u(p)?(c.next(),p):null}function pe(c){return Z(c,p=>{const b=p.charCodeAt(0);return b>=97&&b<=122||b>=65&&b<=90||b>=48&&b<=57||b===95||b===36})}function ye(c){return Z(c,p=>{const b=p.charCodeAt(0);return b>=48&&b<=57})}function Q(c){return Z(c,p=>{const b=p.charCodeAt(0);return b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102})}function oe(c){let u="",p="";for(;u=ye(c);)p+=u;return p}function te(c){R(c);const u=c.currentChar();return u!=="%"&&h(q.EXPECTED_TOKEN,s(),0,u),c.next(),"%"}function Ae(c){let u="";for(;;){const p=c.currentChar();if(p==="{"||p==="}"||p==="@"||p==="|"||!p)break;if(p==="%")if(H(c))u+=p,c.next();else break;else if(p===ut||p===Me)if(H(c))u+=p,c.next();else{if(K(c))break;u+=p,c.next()}else u+=p,c.next()}return u}function De(c){R(c);let u="",p="";for(;u=pe(c);)p+=u;return c.currentChar()===bt&&h(q.UNTERMINATED_CLOSING_BRACE,s(),0),p}function ke(c){R(c);let u="";return c.currentChar()==="-"?(c.next(),u+=`-${oe(c)}`):u+=oe(c),c.currentChar()===bt&&h(q.UNTERMINATED_CLOSING_BRACE,s(),0),u}function Te(c){R(c),L(c,"'");let u="",p="";const b=k=>k!==bl&&k!==Me;for(;u=Z(c,b);)u==="\\"?p+=Ye(c):p+=u;const C=c.currentChar();return C===Me||C===bt?(h(q.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),C===Me&&(c.next(),L(c,"'")),p):(L(c,"'"),p)}function Ye(c){const u=c.currentChar();switch(u){case"\\":case"'":return c.next(),`\\${u}`;case"u":return Ge(c,u,4);case"U":return Ge(c,u,6);default:return h(q.UNKNOWN_ESCAPE_SEQUENCE,s(),0,u),""}}function Ge(c,u,p){L(c,u);let b="";for(let C=0;C<p;C++){const k=Q(c);if(!k){h(q.INVALID_UNICODE_ESCAPE_SEQUENCE,s(),0,`\\${u}${b}${c.currentChar()}`);break}b+=k}return`\\${u}${b}`}function nt(c){R(c);let u="",p="";const b=C=>C!=="{"&&C!=="}"&&C!==ut&&C!==Me;for(;u=Z(c,b);)p+=u;return p}function ge(c){let u="",p="";for(;u=pe(c);)p+=u;return p}function A(c){const u=(p=!1,b)=>{const CLine truncated
|
||||
`,l=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=Nm(e,{mode:n,filename:r,sourceMap:o,breakLineCode:s,needIndent:l});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(l),i.length>0&&(a.push(`const { ${Oa(i.map(h=>`${h}: _${h}`),", ")} } = ctx`),a.newline()),a.push("return "),dn(a,e),a.deindent(l),a.push("}"),delete e.helpers;const{code:f,map:d}=a.context();return{ast:e,code:f,map:d?d.toJSON():void 0}};function km(e,t={}){const n=Na({},t),r=!!n.jit,o=!!n.minify,s=n.optimize==null?!0:n.optimize,i=ym(n).parse(e);return r?(s&&Cm(i),o&&Zt(i),{ast:i,code:""}):(Tm(i,n),Sm(i,n))}/*!
|
||||
* devtools-if v9.3.0
|
||||
* (c) 2023 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/const Pa={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
|
||||
* core-base v9.3.0
|
||||
* (c) 2023 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/function wm(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(mt().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(mt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(mt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}const xt=[];xt[0]={w:[0],i:[3,0],"[":[4],o:[7]};xt[1]={w:[1],".":[2],"[":[4],o:[7]};xt[2]={w:[2],i:[3,0],0:[3,0]};xt[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};xt[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};xt[5]={"'":[4,0],o:8,l:[5,0]};xt[6]={'"':[4,0],o:8,l:[6,0]};const Fm=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Mm(e){return Fm.test(e)}function xm(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Dm(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Um(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Mm(t)?xm(t):"*"+t}function $m(e){const t=[];let n=-1,r=0,o=0,s,l,i,a,f,d,h;const m=[];m[0]=()=>{l===void 0?l=i:l+=i},m[1]=()=>{l!==void 0&&(t.push(l),l=void 0)},m[2]=()=>{m[0](),o++},m[3]=()=>{if(o>0)o--,r=4,m[0]();else{if(o=0,l===void 0||(l=Um(l),l===!1))return!1;m[1]()}};function E(){const L=e[n+1];if(r===5&&L==="'"||r===6&&L==='"')return n++,i="\\"+L,m[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&E())){if(a=Dm(s),h=xt[r],f=h[a]||h.l||8,f===8||(r=f[0],f[1]!==void 0&&(d=m[f[1]],d&&(i=s,d()===!1))))return;if(r===7)return t}}const Tl=new Map;function Hm(e,t){return ue(e)?e[t]:null}function Wm(e,t){if(!ue(e))return null;let n=Tl.get(t);if(n||(n=$m(t),n&&Tl.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;s<r;){const l=o[n[s]];if(l===void 0)return null;o=l,s++}return o}const Vm=e=>e,jm=e=>"",Bm="text",Km=e=>e.length===0?"":nm(e),Ym=tm;function Cl(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function Gm(e){const t=Ne(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Ne(e.named.count)||Ne(e.named.n))?Ne(e.named.count)?e.named.count:Ne(e.named.n)?e.named.n:t:t}function Xm(e,t){t.count||(t.count=e),t.n||(t.n=e)}function qm(e={}){const t=e.locale,n=Gm(e),r=ue(e.pluralRules)&&W(t)&&Ce(e.pluralRules[t])?e.pluralRules[t]:Cl,o=ue(e.pluralRules)&&W(t)&&Ce(e.pluralRules[t])?Cl:void 0,s=g=>g[r(n,g.length,o)],l=e.list||[],i=g=>l[g],a=e.named||{};Ne(e.pluralIndex)&&Xm(n,a);const f=g=>a[g];function d(g){const T=Ce(e.messages)?e.messages(g):ue(e.messages)?e.messages[g]:!1;return T||(e.parent?e.parent.message(g):jm)}const h=g=>e.modifiers?e.modifiers[g]:Vm,m=z(e.processor)&&Ce(e.processor.normalize)?e.processor.normalize:Km,E=z(e.processor)&&Ce(e.processor.interpolate)?e.processor.interpolate:Ym,L=z(e.processor)&&W(e.processor.type)?e.processor.type:Bm,R={list:i,named:f,plural:s,linked:(g,...T)=>{const[P,y]=T;let S="text",N="";T.length===1?ue(P)?(N=P.modifier||N,S=P.type||S):W(P)&&(N=P||N):T.length===2&&(W(P)&&(N=P||N),W(y)&&(S=y||S));const D=d(g)(R),F=S==="vnode"&&he(D)&&N?D[0]:D;return N?h(N)(F,S):F},message:d,type:L,interpolate:E,normalize:m,values:Se({},l,a)};return R}let Vn=null;function Jm(e){Vn=e}function Qm(e,t,n){Vn&&Vn.emit(Pa.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const zm=Zm(Pa.FunctionTranslate);function Zm(e){return t=>Vn&&Vn.emit(e,t)}const eh={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function th(e,t,n){return[...new Set([n,...he(t)?t:ue(t)?Object.keys(t):W(t)?[t]:[n]])]}function Aa(e,t,n){const r=W(n)?n:qn,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let l=[n];for(;he(l);)l=Ll(s,l,t);const i=he(t)||!z(t)?t:t.default?t.default:null;l=W(i)?[i]:i,he(l)&&Ll(s,l,!1),o.__localeChainCache.set(r,s)}return s}function Ll(e,t,n){let r=!0;for(let o=0;o<t.length&&re(r);o++){const s=t[o];W(s)&&(r=nh(e,t[o],n))}return r}function nh(e,t,n){let r;const o=t.split("-");do{const s=o.join("-");r=rh(e,s,n),o.splice(-1,1)}while(o.length&&r===!0);return r}function rh(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(he(n)||z(n))&&n[o]&&(r=n[o])}return r}const sh="9.3.0",wr=-1,qn="en-US",Il="",Nl=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function oh(){return{upper:(e,t)=>t==="text"&&W(e)?e.toUpperCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&W(e)?e.toLowerCase():t==="vnode"&&ue(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&W(e)?Nl(e):t==="vnode"&&ue(e)&&"__v_isVNode"in e?Nl(e.children):e}}let Ra;function Ol(e){Ra=e}let Sa;function lh(e){Sa=e}let ka;function ih(e){ka=e}let wa=null;const Pl=e=>{wa=e},ah=()=>wa;let Fa=null;const Al=e=>{Fa=e},ch=()=>Fa;let Rl=0;functioLine truncated
|
||||
* vue-i18n v9.3.0
|
||||
* (c) 2023 kazuya kawaguchi
|
||||
* Released under the MIT License.
|
||||
*/const Eh="9.3.0";function bh(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(mt().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(mt().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_JIT_COMPILATION__!="boolean"&&(mt().__INTLIFY_JIT_COMPILATION__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(mt().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(mt().__INTLIFY_PROD_DEVTOOLS__=!1)}const Va=eh.__EXTEND_POINT__,yt=no(Va);yt(),yt(),yt(),yt(),yt(),yt(),yt(),yt();const ja=Nt.__EXTEND_POINT__,Ue=no(ja),Le={UNEXPECTED_RETURN_TYPE:ja,INVALID_ARGUMENT:Ue(),MUST_BE_CALL_SETUP_TOP:Ue(),NOT_INSTALLED:Ue(),NOT_AVAILABLE_IN_LEGACY_MODE:Ue(),REQUIRED_VALUE:Ue(),INVALID_VALUE:Ue(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:Ue(),NOT_INSTALLED_WITH_PROVIDE:Ue(),UNEXPECTED_ERROR:Ue(),NOT_COMPATIBLE_LEGACY_VUE_I18N:Ue(),BRIDGE_SUPPORT_VUE_2_ONLY:Ue(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:Ue(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:Ue(),__EXTEND_POINT__:Ue()};function Oe(e,...t){return pn(e,null,void 0)}const gs=Mt("__translateVNode"),Es=Mt("__datetimeParts"),bs=Mt("__numberParts"),Ba=Mt("__setPluralRules"),Ka=Mt("__injectWithOption"),ys=Mt("__dispose");function vs(e){if(!ue(e))return e;for(const t in e)if(to(e,t))if(!t.includes("."))ue(e[t])&&vs(e[t]);else{const n=t.split("."),r=n.length-1;let o=e,s=!1;for(let l=0;l<r;l++){if(n[l]in o||(o[n[l]]={}),!ue(o[n[l]])){s=!0;break}o=o[n[l]]}s||(o[n[r]]=e[t],delete e[t]),ue(o[n[r]])&&vs(o[n[r]])}return e}function Fr(e,t){const{messages:n,__i18n:r,messageResolver:o,flatJson:s}=t,l=z(n)?n:he(r)?{}:{[e]:{}};if(he(r)&&r.forEach(i=>{if("locale"in i&&"resource"in i){const{locale:a,resource:f}=i;a?(l[a]=l[a]||{},Rn(f,l[a])):Rn(f,l)}else W(i)&&Rn(JSON.parse(i),l)}),o==null&&s)for(const i in l)to(l,i)&&vs(l[i]);return l}const sr=e=>!ue(e)||he(e);function Rn(e,t){if(sr(e)||sr(t))throw Oe(Le.INVALID_VALUE);for(const n in e)to(e,n)&&(sr(e[n])||sr(t[n])?t[n]=e[n]:Rn(e[n],t[n]))}function Ya(e){return e.type}function Ga(e,t,n){let r=ue(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=Fr(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(ue(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(l=>{e.mergeDateTimeFormat(l,t.datetimeFormats[l])})}if(ue(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(l=>{e.mergeNumberFormat(l,t.numberFormats[l])})}}}function Ul(e){return Re(Gn,null,e,0)}const $l="__INTLIFY_META__";let Hl=0;function Wl(e){return(t,n,r,o)=>e(n,r,wt()||void 0,o)}const yh=()=>{const e=wt();let t=null;return e&&(t=Ya(e)[$l])?{[$l]:t}:null};function oo(e={},t){const{__root:n,__injectWithOption:r}=e,o=n===void 0;let s=re(e.inheritLocale)?e.inheritLocale:!0;const l=He(n&&s?n.locale.value:W(e.locale)?e.locale:qn),i=He(n&&s?n.fallbackLocale.value:W(e.fallbackLocale)||he(e.fallbackLocale)||z(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),a=He(Fr(l.value,e)),f=He(z(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),d=He(z(e.numberFormats)?e.numberFormats:{[l.value]:{}});let h=n?n.missingWarn:re(e.missingWarn)||Ft(e.missingWarn)?e.missingWarn:!0,m=n?n.fallbackWarn:re(e.fallbackWarn)||Ft(e.fallbackWarn)?e.fallbackWarn:!0,E=n?n.fallbackRoot:re(e.fallbackRoot)?e.fallbackRoot:!0,L=!!e.fallbackFormat,O=Ce(e.missing)?e.missing:null,R=Ce(e.missing)?Wl(e.missing):null,g=Ce(e.postTranslation)?e.postTranslation:null,T=n?n.warnHtmlMessage:re(e.warnHtmlMessage)?e.warnHtmlMessage:!0,P=!!e.escapeParameter;const y=n?n.modifiers:z(e.modifiers)?e.modifiers:{};let S=e.pluralRules||n&&n.pluralRules,N;N=(()=>{o&&Al(null);const v={version:Eh,locale:l.value,fallbackLocale:i.value,messages:a.value,modifiers:y,pluralRules:S,missing:R===null?void 0:R,missingWarn:h,fallbackWarn:m,fallbackFormat:L,unresolving:!0,postTranslation:g===null?void 0:g,warnHtmlMessage:T,escapeParameter:P,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};v.datetimeFormats=f.value,v.numberFormats=d.value,v.__datetimeFormatters=z(N)?N.__datetimeFormatters:void 0,v.__numberFormatters=z(N)?N.__numberFormatters:void 0;const I=uh(v);return o&&Al(I),I})(),yn(N,l.value,i.value);function F(){return[l.value,i.value,a.value,f.value,d.value]}const U=Ee({get:()=>l.value,set:v=>{l.value=v,N.locale=l.value}}),K=Ee({get:()=>i.value,set:v=>{i.value=v,N.fallbackLocale=i.value,yn(N,l.value,v)}}),J=Ee(()=>a.value),H=Ee(()=>f.value),Z=Ee(()=>d.value);function pe(){return Ce(g)?g:null}function ye(v){g=v,N.postTranslation=v}function Q(){return O}function oe(v){v!==null&&(R=Wl(v)),O=v,N.missing=R}const te=(v,I,Y,X,ae,le)=>{F();let de;try{__INTLIFY_PROD_DEVTOOLS__&&Pl(yh()),o||(N.fallbackContext=n?ch():void 0),de=v(N)}finally{__INTLIFY_PROD_DEVTOOLS__&&Pl(null),o||(N.fallbackContext=void 0)}if(Ne(de)&&de===wr){const[Ve,Dt]=I();return n&&E?X(n):ae(Ve)}else{if(le(de))return de;throw Oe(Le.UNEXPECTED_RETURN_TYPE)}};Line truncated
|
||||
@@ -1,11 +0,0 @@
|
||||
import{x as Ar,h as P,u as f,a5 as se,A as Ce,n as ne,am as cs,a4 as ds,ak as Nr,z as D,c as w,a2 as fs,Y as Ve,s as me,an as ps,o as b,F as x,D as C,g as dt,M as Rn,ao as hs,V as Rr,i as Y,B as Xt,p as en,d as J,r as G,a0 as Ke,_ as ft,a1 as vs,ap as ms,Z as Ir,m as tn,v as nn,G as F,R as qe,b as I,a as L,w as W,f as he,q as gt,E as Fr,H as Ne,e as kr,T as Mr,aj as _s,j as gs,aq as ys,K as zr,N as Ut,L as In}from"./index-c6e70cde.js";var Fn;const oe=typeof window<"u",bs=e=>typeof e<"u",Lr=e=>typeof e=="function",ws=e=>typeof e=="string",pt=()=>{},Ss=oe&&((Fn=window==null?void 0:window.navigator)==null?void 0:Fn.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ge(e){return typeof e=="function"?e():f(e)}function Br(e,t){function n(...r){return new Promise((o,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(o).catch(s)})}return n}const Dr=e=>e();function Es(e,t={}){let n,r,o=pt;const s=i=>{clearTimeout(i),o(),o=pt};return i=>{const d=ge(e),l=ge(t.maxWait);return n&&s(n),d<=0||l!==void 0&&l<=0?(r&&(s(r),r=null),Promise.resolve(i())):new Promise((p,v)=>{o=t.rejectOnCancel?v:p,l&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,p(i())},l)),n=setTimeout(()=>{r&&s(r),r=null,p(i())},d)})}}function xs(e=Dr){const t=P(!0);function n(){t.value=!1}function r(){t.value=!0}const o=(...s)=>{t.value&&e(...s)};return{isActive:Nr(t),pause:n,resume:r,eventFilter:o}}function Os(e){return e}function yt(e){return cs()?(ds(e),!0):!1}function Cs(e,t=200,n={}){return Br(Es(t,n),e)}function Y0(e,t=200,n={}){const r=P(e.value),o=Cs(()=>{r.value=e.value},t,n);return D(e,()=>o()),r}function $s(e){return typeof e=="function"?w(e):P(e)}function Hr(e,t=!0){se()?Ce(e):t?e():ne(e)}function Ts(e,t,n={}){const{immediate:r=!0}=n,o=P(!1);let s=null;function a(){s&&(clearTimeout(s),s=null)}function i(){o.value=!1,a()}function d(...l){a(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=null,e(...l)},ge(t))}return r&&(o.value=!0,oe&&d()),yt(i),{isPending:Nr(o),start:d,stop:i}}function Q0(e=!1,t={}){const{truthyValue:n=!0,falsyValue:r=!1}=t,o=Ar(e),s=P(e);function a(i){if(arguments.length)return s.value=i,s.value;{const d=ge(n);return s.value=s.value===d?ge(r):d,s.value}}return o?a:[s,a]}var kn=Object.getOwnPropertySymbols,Ps=Object.prototype.hasOwnProperty,As=Object.prototype.propertyIsEnumerable,Ns=(e,t)=>{var n={};for(var r in e)Ps.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&kn)for(var r of kn(e))t.indexOf(r)<0&&As.call(e,r)&&(n[r]=e[r]);return n};function Rs(e,t,n={}){const r=n,{eventFilter:o=Dr}=r,s=Ns(r,["eventFilter"]);return D(e,Br(o,t),s)}var Is=Object.defineProperty,Fs=Object.defineProperties,ks=Object.getOwnPropertyDescriptors,ht=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Ur=Object.prototype.propertyIsEnumerable,Mn=(e,t,n)=>t in e?Is(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ms=(e,t)=>{for(var n in t||(t={}))jr.call(t,n)&&Mn(e,n,t[n]);if(ht)for(var n of ht(t))Ur.call(t,n)&&Mn(e,n,t[n]);return e},zs=(e,t)=>Fs(e,ks(t)),Ls=(e,t)=>{var n={};for(var r in e)jr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ht)for(var r of ht(e))t.indexOf(r)<0&&Ur.call(e,r)&&(n[r]=e[r]);return n};function Bs(e,t,n={}){const r=n,{eventFilter:o}=r,s=Ls(r,["eventFilter"]),{eventFilter:a,pause:i,resume:d,isActive:l}=xs(o);return{stop:Rs(e,t,zs(Ms({},s),{eventFilter:a})),pause:i,resume:d,isActive:l}}function Re(e){var t;const n=ge(e);return(t=n==null?void 0:n.$el)!=null?t:n}const ye=oe?window:void 0;function Ee(...e){let t,n,r,o;if(ws(e[0])||Array.isArray(e[0])?([n,r,o]=e,t=ye):[t,n,r,o]=e,!t)return pt;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],a=()=>{s.forEach(p=>p()),s.length=0},i=(p,v,g,m)=>(p.addEventListener(v,g,m),()=>p.removeEventListener(v,g,m)),d=D(()=>[Re(t),ge(o)],([p,v])=>{a(),p&&s.push(...n.flatMap(g=>r.map(m=>i(p,g,m,v))))},{immediate:!0,flush:"post"}),l=()=>{d(),a()};return yt(l),l}let zn=!1;function X0(e,t,n={}){const{window:r=ye,ignore:o=[],capture:s=!0,detectIframe:a=!1}=n;if(!r)return;Ss&&!zn&&(zn=!0,Array.from(r.document.body.children).forEach(g=>g.addEventListener("click",pt)));let i=!0;const d=g=>o.some(m=>{if(typeof m=="string")return Array.from(r.document.querySelectorAll(m)).some(c=>c===g.target||g.composedPath().includes(c));{const c=Re(m);return c&&(g.target===c||g.composedPath().includes(c))}}),p=[Ee(r,"click",g=>{const m=Re(e);if(!(!m||m===g.target||g.composedPath().includes(m))){if(g.detail===0&&(i=!d(g)),!i){i=!0;return}t(g)}},{passive:!0,capture:s}),Ee(r,"pointerdown",g=>{const m=Re(e);m&&(i=!g.composedPath().includes(m)&&!d(g))},{passive:!0}),a&&Ee(r,"blur",g=>{var m;const c=Re(e);((m=r.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(c!=null&&c.contains(r.document.activeElement))&&t(g)})].filter(Boolean);return()=>p.forEach(g=>g())}function Vr(e,t=!1){const n=P(),r=()=>n.value=!!e();return r(),Hr(r,t),n}function Ds(e,t={}){const{window:n=ye}=t,r=Vr(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;coLine truncated
|
||||
height:0 !important;
|
||||
visibility:hidden !important;
|
||||
${va()?"":"overflow:hidden !important;"}
|
||||
position:absolute !important;
|
||||
z-index:-1000 !important;
|
||||
top:0 !important;
|
||||
right:0 !important;
|
||||
`,yd=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function bd(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:yd.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:n}}function ir(e,t=1,n){var r;Q||(Q=document.createElement("textarea"),document.body.appendChild(Q));const{paddingSize:o,borderSize:s,boxSizing:a,contextStyle:i}=bd(e);Q.setAttribute("style",`${i};${gd}`),Q.value=e.value||e.placeholder||"";let d=Q.scrollHeight;const l={};a==="border-box"?d=d+s:a==="content-box"&&(d=d-o),Q.value="";const p=Q.scrollHeight-o;if(Oe(t)){let v=p*t;a==="border-box"&&(v=v+o+s),d=Math.max(v,d),l.minHeight=`${v}px`}if(Oe(n)){let v=p*n;a==="border-box"&&(v=v+o+s),d=Math.min(v,d)}return l.height=`${d}px`,(r=Q.parentNode)==null||r.removeChild(Q),Q=void 0,l}const wd=Ze({id:{type:String,default:void 0},size:wo,disabled:Boolean,modelValue:{type:_e([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:_e([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:We},prefixIcon:{type:We},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:_e([Object,Array,String]),default:()=>ho({})}}),Sd={[qt]:e=>me(e),input:e=>me(e),change:e=>me(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Ed=["role"],xd=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],Od=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],Cd=J({name:"ElInput",inheritAttrs:!1}),$d=J({...Cd,props:wd,emits:Sd,setup(e,{expose:t,emit:n}){const r=e,o=ms(),s=Ir(),a=w(()=>{const _={};return r.containerRole==="combobox"&&(_["aria-haspopup"]=o["aria-haspopup"],_["aria-owns"]=o["aria-owns"],_["aria-expanded"]=o["aria-expanded"]),_}),i=w(()=>[r.type==="textarea"?y.b():u.b(),u.m(m.value),u.is("disabled",c.value),u.is("exceed",es.value),{[u.b("group")]:s.prepend||s.append,[u.bm("group","append")]:s.append,[u.bm("group","prepend")]:s.prepend,[u.m("prefix")]:s.prefix||r.prefixIcon,[u.m("suffix")]:s.suffix||r.suffixIcon||r.clearable||r.showPassword,[u.bm("suffix","password-clear")]:Xe.value&&At.value},o.class]),d=w(()=>[u.e("wrapper"),u.is("focus",U.value)]),l=Wc({excludeKeys:w(()=>Object.keys(a.value))}),{form:p,formItem:v}=Co(),{inputId:g}=_d(r,{formItemContext:v}),m=Oo(),c=fn(),u=be("input"),y=be("textarea"),S=Ve(),E=Ve(),N=P(!1),k=P(!1),z=P(!1),te=P(),O=Ve(r.inputStyle),$=w(()=>S.value||E.value),{wrapperRef:M,isFocused:U,handleFocus:Le,handleBlur:K}=ud($,{afterBlur(){var _;r.validateEvent&&((_=v==null?void 0:v.validate)==null||_.call(v,"blur").catch(T=>void 0))}}),wn=w(()=>{var _;return(_=p==null?void 0:p.statusIcon)!=null?_:!1}),Be=w(()=>(v==null?void 0:v.validateState)||""),Sn=w(()=>Be.value&&Hc[Be.value]),Qo=w(()=>z.value?Tc:Cu),Xo=w(()=>[o.style,r.inputStyle]),En=w(()=>[r.inputStyle,O.value,{resize:r.resize}]),ce=w(()=>no(r.modelValue)?"":String(r.modelValue)),Xe=w(()=>r.clearable&&!c.value&&!r.readonly&&!!ce.value&&(U.value||N.value)),At=w(()=>r.showPassword&&!c.value&&!r.readonly&&!!ce.value&&(!!ce.value||U.value)),Pe=w(()=>r.showWordLimit&&!!l.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!c.value&&!r.readonly&&!r.showPassword),Nt=w(()=>ce.value.length),es=w(()=>!!Pe.value&&Nt.value>Number(l.value.maxlength)),ts=w(()=>!!s.suffix||!!r.suffixIcon||Xe.value||r.showPassword||Pe.value||!!Be.value&&wn.value),[ns,rs]=id(S);Jr(E,_=>{if(os(),!Pe.value||r.resize!=="both")return;const T=_[0],{width:H}=T.contentRect;te.value={right:`calc(100% - ${H+15+6}px)`}});const De=()=>{const{type:_,autosize:T}=r;if(!(!oe||_!=="textarea"||!E.value))if(T){const H=dt(T)?T.minRows:void 0,et=dt(T)?T.maxRows:void 0,Nn=ir(E.value,H,et);O.value={overflowY:"hidden",...Nn},ne(()=>{E.value.offsetHeight,O.value=Nn})}else O.value={minHeight:ir(E.value).Line truncated
|
||||
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&$0[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Or=Symbol("internals");function Ue(e){return e&&String(e).trim().toLowerCase()}function lt(e){return e===!1||e==null?e:h.isArray(e)?e.map(lt):String(e)}function P0(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const A0=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dt(e,t,n,r,o){if(h.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!h.isString(t)){if(h.isString(r))return t.indexOf(r)!==-1;if(h.isRegExp(r))return r.test(t)}}function N0(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function R0(e,t){const n=h.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,a){return this[r].call(this,t,o,s,a)},configurable:!0})})}class Pt{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(i,d,l){const p=Ue(d);if(!p)throw new Error("header name must be a non-empty string");const v=h.findKey(o,p);(!v||o[v]===void 0||l===!0||l===void 0&&o[v]!==!1)&&(o[v||d]=lt(i))}const a=(i,d)=>h.forEach(i,(l,p)=>s(l,p,d));return h.isPlainObject(t)||t instanceof this.constructor?a(t,n):h.isString(t)&&(t=t.trim())&&!A0(t)?a(T0(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=Ue(t),t){const r=h.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return P0(o);if(h.isFunction(n))return n.call(this,o,r);if(h.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ue(t),t){const r=h.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dt(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(a){if(a=Ue(a),a){const i=h.findKey(r,a);i&&(!n||Dt(r,r[i],i,n))&&(delete r[i],o=!0)}}return h.isArray(t)?t.forEach(s):s(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!t||Dt(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const n=this,r={};return h.forEach(this,(o,s)=>{const a=h.findKey(r,s);if(a){n[a]=lt(o),delete n[s];return}const i=t?N0(s):String(s).trim();i!==s&&delete n[s],n[i]=lt(o),r[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return h.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&h.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Or]=this[Or]={accessors:{}}).accessors,o=this.prototype;function s(a){const i=Ue(a);r[i]||(R0(o,a),r[i]=!0)}return h.isArray(t)?t.forEach(s):s(t),this}}Pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);h.freezeMethods(Pt.prototype);h.freezeMethods(Pt);const ue=Pt;function Ht(e,t){const n=this||_n,r=t||n,o=ue.from(r.headers);let s=r.data;return h.forEach(e,function(i){s=i.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function Wo(e){return!!(e&&e.__CANCEL__)}function Qe(e,t,n){A.call(this,e??"canceled",A.ERR_CANCELED,t,n),this.name="CanceledError"}h.inherits(Qe,A,{__CANCEL__:!0});function I0(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new A("Request failed with status code "+n.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const F0=re.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,a,i){const d=[];d.push(n+"="+encodeURIComponent(r)),h.isNumber(o)&&d.push("expires="+new Date(o).toGMTString()),h.isString(s)&&d.push("path="+s),h.isString(a)&&d.push("domain="+a),i===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function k0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function M0(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Go(e,t){return e&&!k0(t)?M0(e,t):t}const z0=re.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let a=s;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const i=h.isString(a)?o(a):a;return i.protocol===r.protocol&&i.host===r.host}}():function(){return function(){return!0}}();function L0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function B0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,a;return t=t!==void 0?t:1e3,function(d){const l=Date.now(),p=r[s];a||(a=l),n[o]=d,r[o]=l;let v=s,g=0;for(;v!==o;)g+=n[v++],v=v%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),l-a<t)return;const m=p&&l-p;return m?Math.round(g*1e3/m):void 0}}function Cr(e,t){let n=0;const r=B0(50,250);return o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,i=s-n,d=r(i),l=s<=a;n=s;const p={loaded:s,total:a,progress:a?s/a:void 0,bytes:i,rate:d||void 0,estimated:d&&a&&l?(a-s)/d:void 0,event:o};p[t?"download":"upload"]=!0,e(p)}}const D0=typeof XMLHttpRequest<"u",H0=D0&&function(e){return new Promise(function(n,r){let o=e.data;const s=ue.from(e.headers).normalize(),a=e.responseType;let i;function d(){e.cancelToken&&e.cancelToken.unsubscribe(i),e.signal&&e.signal.removeEventListener("abort",i)}h.isFormData(o)&&(re.isStandardBrowserEnv||re.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",c=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(m+":"+c))}const p=Go(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ko(p,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function v(){if(!l)return;const m=ue.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),u={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:m,config:e,request:l};I0(function(S){n(S),d()},function(S){r(S),d()},u),l=null}if("onloadend"in l?l.onloadend=v:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(v)},l.onabort=function(){l&&(r(new A("Request aborted",A.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new A("Network Error",A.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let c=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||qo;e.timeoutErrorMessage&&(c=e.timeoutErrorMessage),r(new A(c,u.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,l)),l=null},re.isStandardBrowserEnv){const m=(e.withCredentials||z0(p))&&e.xsrfCookieName&&F0.read(e.xsrfCookieName);m&&s.set(e.xsrfHeaderName,m)}o===void 0&&s.setContentType(null),"setRequestHeader"in l&&h.forEach(s.toJSON(),function(c,u){l.setRequestHeader(u,c)}),h.isUndefined(e.withCredentials)Line truncated
|
||||
@@ -1 +0,0 @@
|
||||
import{X as A,K as N}from"./index-c6e70cde.js";var o=(E=>(E[E.TEXT=1]="TEXT",E[E.CLASS=2]="CLASS",E[E.STYLE=4]="STYLE",E[E.PROPS=8]="PROPS",E[E.FULL_PROPS=16]="FULL_PROPS",E[E.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",E[E.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",E[E.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",E[E.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",E[E.NEED_PATCH=512]="NEED_PATCH",E[E.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",E[E.HOISTED=-1]="HOISTED",E[E.BAIL=-2]="BAIL",E))(o||{});const e=E=>{const _=A(E)?E:[E],S=[];return _.forEach(T=>{var r;A(T)?S.push(...e(T)):N(T)&&A(T.children)?S.push(...e(T.children)):(S.push(T),N(T)&&((r=T.component)!=null&&r.subTree)&&S.push(...e(T.component.subTree)))}),S};export{o as P,e as f};
|
||||
@@ -0,0 +1 @@
|
||||
import{ar as A,$ as N}from"./index-098ca3b6.js";var o=(E=>(E[E.TEXT=1]="TEXT",E[E.CLASS=2]="CLASS",E[E.STYLE=4]="STYLE",E[E.PROPS=8]="PROPS",E[E.FULL_PROPS=16]="FULL_PROPS",E[E.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",E[E.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",E[E.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",E[E.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",E[E.NEED_PATCH=512]="NEED_PATCH",E[E.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",E[E.HOISTED=-1]="HOISTED",E[E.BAIL=-2]="BAIL",E))(o||{});const e=E=>{const _=A(E)?E:[E],S=[];return _.forEach(T=>{var r;A(T)?S.push(...e(T)):N(T)&&A(T.children)?S.push(...e(T.children)):(S.push(T),N(T)&&((r=T.component)!=null&&r.subTree)&&S.push(...e(T.component.subTree)))}),S};export{o as P,e as f};
|
||||
@@ -8,8 +8,8 @@
|
||||
<meta name="keywords" content="{{keywords}}" />
|
||||
<meta name="generator" content="FileCodeBox2.0" />
|
||||
<title>{{title}}</title>
|
||||
<script type="module" crossorigin src="/assets/index-c6e70cde.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-b9599089.css">
|
||||
<script type="module" crossorigin src="/assets/index-098ca3b6.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-76720517.css">
|
||||
</head>
|
||||
<body style="background: url('{{background}}') no-repeat center center fixed;background-size: cover;">
|
||||
<div id="app" style="opacity: {{opacity}}"></div>
|
||||
|
||||
@@ -1,4 +1,29 @@
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from "vue";
|
||||
import { request } from "@/utils/request";
|
||||
import { ElNotification } from 'element-plus'
|
||||
import { useConfigStore } from "@/stores/config";
|
||||
|
||||
const { config } = useConfigStore();
|
||||
onMounted(() => {
|
||||
request({
|
||||
url:'/',
|
||||
method:'post'
|
||||
}).then((res:any)=>{
|
||||
if (res.code === 200) {
|
||||
localStorage.setItem('config', JSON.stringify(res.detail));
|
||||
if (config.notify_title && config.notify_content && localStorage.getItem('notify') !== config.notify_title + config.notify_content) {
|
||||
localStorage.setItem('notify', config.notify_title + config.notify_content);
|
||||
ElNotification({
|
||||
title: config.notify_title,
|
||||
dangerouslyUseHTMLString: true,
|
||||
message: config.notify_content,
|
||||
type: 'success'
|
||||
});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
.card {
|
||||
max-width: 400px;
|
||||
min-width: 398px;
|
||||
height: 100%;
|
||||
background-color: #F8FBFE;
|
||||
box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
|
||||
|
||||
@@ -43,6 +43,7 @@ const showTextDetail = (text: any) => {
|
||||
showTextDetailVisible.value = true;
|
||||
nowText.value = text;
|
||||
};
|
||||
|
||||
const showTextDetailVisible = ref(false);
|
||||
|
||||
const md = new markdownIt({
|
||||
@@ -60,13 +61,17 @@ function renderMarkdown(message: string) {
|
||||
return md.render(message);
|
||||
}
|
||||
|
||||
function getQrCodeUrl(code: string) {
|
||||
return code.toString().startsWith('http') ? code : window.location.origin + '/#/?code=' +code;
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<el-drawer :append-to-body="true" v-model="fileBoxStore.showFileBox" direction="btt" style="max-width: 1080px;margin: auto;"
|
||||
size="400">
|
||||
<template #header>
|
||||
<h4>{{t('fileBox.fileBox')}}</h4>
|
||||
<h4 v-if="route.name=='home'">{{t('fileBox.receiveFileBox')}}</h4>
|
||||
<h4 v-else>{{t('fileBox.sendFileBox')}}</h4>
|
||||
</template>
|
||||
<template #default>
|
||||
<div v-if="route.name=='home'" style="display: flex;flex-wrap: wrap;justify-content: center">
|
||||
@@ -93,7 +98,7 @@ function renderMarkdown(message: string) {
|
||||
</template>
|
||||
<div style="width: 200px;">
|
||||
<div style="display: flex;justify-content: space-between">
|
||||
<qrcode-vue v-if="value.name!=='文本分享'" :value="value.text" :size="100"></qrcode-vue>
|
||||
<qrcode-vue v-if="value.name!=='文本分享'" :value="getQrCodeUrl(value.text)" :size="100"></qrcode-vue>
|
||||
<div v-else style="width: 100px;height: 100px;flex-wrap: wrap;overflow-y:scroll ">{{value.text}}</div>
|
||||
<div style="display: flex;flex-direction: column;justify-content: space-around">
|
||||
<el-tag size="large" style="cursor: pointer" @click="copyText(value.code)">{{ value.code }}</el-tag>
|
||||
@@ -118,7 +123,7 @@ function renderMarkdown(message: string) {
|
||||
<el-progress v-if="value.status!='success' && value.status!='fail'" striped :percentage="value.percentage" :text-inside="true"
|
||||
:stroke-width="20"></el-progress>
|
||||
<div v-else style="display: flex;justify-content: space-between">
|
||||
<qrcode-vue :value="value.text" :size="100"></qrcode-vue>
|
||||
<qrcode-vue :value="getQrCodeUrl(value.code)" :size="100"></qrcode-vue>
|
||||
<div style="display: flex;flex-direction: column;justify-content: space-around">
|
||||
<el-tag size="large" style="cursor: pointer" @click="copyText(value.code)">{{ value.code }}</el-tag>
|
||||
<el-tag size="large" type="success" style="cursor: pointer" @click="copyText(value.code,1);">{{ t('fileBox.copyLink') }}
|
||||
|
||||
@@ -5,7 +5,10 @@ import { request } from "@/utils/request";
|
||||
import { useFileDataStore } from "@/stores/fileData";
|
||||
import { useFileBoxStore } from "@/stores/fileBox";
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useConfigStore } from "@/stores/config";
|
||||
import { ElMessage } from "element-plus";
|
||||
|
||||
const { config } = useConfigStore();
|
||||
const { t } = useI18n()
|
||||
const fileBoxStore = useFileBoxStore();
|
||||
const fileStore = useFileDataStore();
|
||||
@@ -38,6 +41,28 @@ const handleOnChangeFileList = (file: any) => {
|
||||
const handleHttpRequest = (options: any) => {
|
||||
fileBoxStore.showFileBox = true;
|
||||
const formData = new FormData();
|
||||
if (config.openUpload === 0 || localStorage.getItem('adminPassword') === null) {
|
||||
fileStore.shareData.forEach((file: any) => {
|
||||
if (file.uid === options.file.uid) {
|
||||
ElMessage.error(t('msg.uploadClose'));
|
||||
file.status = 'fail';
|
||||
file.code = t('msg.fileUploadFail');
|
||||
fileStore.save();
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (options.file.size > config.uploadSize) {
|
||||
fileStore.shareData.forEach((file: any) => {
|
||||
if (file.uid === options.file.uid) {
|
||||
ElMessage.error(t('msg.fileOverSize'));
|
||||
file.status = 'fail';
|
||||
file.code = t('msg.fileOverSize');
|
||||
fileStore.save();
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
formData.append('file', options.file);
|
||||
formData.append('expire_value', props.shareData.expireValue);
|
||||
formData.append('expire_style', props.shareData.expireStyle);
|
||||
@@ -63,6 +88,7 @@ const handleHttpRequest = (options: any) => {
|
||||
file.status = 'success';
|
||||
file.text = data.text;
|
||||
file.code = data.code;
|
||||
ElMessage.success(t('msg.fileUploadSuccess'));
|
||||
fileStore.save();
|
||||
}
|
||||
});
|
||||
@@ -70,7 +96,8 @@ const handleHttpRequest = (options: any) => {
|
||||
fileStore.shareData.forEach((file: any) => {
|
||||
if (file.uid === options.file.uid) {
|
||||
file.status = 'fail';
|
||||
file.code = '上传失败';
|
||||
file.code = t('msg.fileUploadFail');
|
||||
ElMessage.error(t('msg.fileUploadFail'));
|
||||
fileStore.save();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -7,8 +7,10 @@ import { useFileBoxStore } from "@/stores/fileBox";
|
||||
import { ElMessage } from "element-plus";
|
||||
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useConfigStore } from "@/stores/config";
|
||||
|
||||
const { t } = useI18n()
|
||||
const {config} = useConfigStore();
|
||||
const fileBoxStore = useFileBoxStore();
|
||||
const fileStore = useFileDataStore();
|
||||
const props = defineProps({
|
||||
@@ -25,6 +27,8 @@ const props = defineProps({
|
||||
const handleSubmitShareText = ()=>{
|
||||
if (shareText.value === '') {
|
||||
ElMessage.warning(t('send.prompt3'));
|
||||
} else if(config.openUpload === 0 && localStorage.getItem('adminPassword') === null){
|
||||
ElMessage.error(t('msg.uploadClose'));
|
||||
} else {
|
||||
const formData = new FormData();
|
||||
formData.append('text', shareText.value);
|
||||
@@ -62,7 +66,7 @@ const handleSubmitShareText = ()=>{
|
||||
:input-style="{'border-radius':'20px','border':'1px dashed var(--el-border-color)','box-shadow':'none'}"
|
||||
>
|
||||
</el-input>
|
||||
<el-button @click="handleSubmitShareText" style="position: absolute;right: 0;top: 0;border-radius: 0 20px 0 20px;margin: 1px;background: rgba(255,255,255,0.2)" size="large">{{t('send.share')}}</el-button>
|
||||
<el-button @click="handleSubmitShareText" style="position: absolute;right: 0;bottom: 0;border-radius: 20px 0 20px 0;margin: 1px;background: rgba(255,255,255,0.2)" size="large">{{t('send.share')}}</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,72 +1,78 @@
|
||||
export default {
|
||||
send: {
|
||||
'mzsm':'Disclaimers',
|
||||
'alert':'According to the relevant provisions of the Cybersecurity Law of the People\'s Republic of China, the Criminal Law of the People\'s Republic of China, the Law on Public Security Administration Punishments of the People\'s Republic of China, and other relevant regulations, the dissemination or storage of illegal or irregular content may be subject to corresponding penalties, and those who commit serious offenses will bear criminal responsibility. Please refrain from uploading illegal files. This website firmly cooperates with relevant departments to ensure the security and harmony of online content, and to create a green cyber environment.',
|
||||
'prompt1': 'Drag and drop text or files here, or ',
|
||||
'prompt2': 'Days <7 or limited times (deleted after 24h)',
|
||||
'prompt3': 'Please enter the text you want to send',
|
||||
'share': 'Share',
|
||||
'textShare': 'Text Share',
|
||||
'clickUpload': 'Click to upload',
|
||||
'pleaseInputExpireValue': 'Please enter expiration value',
|
||||
'expireStyle': 'Expiration style',
|
||||
'expireData': {
|
||||
'day': 'Days',
|
||||
'hour': 'Hours',
|
||||
'forever': 'Forever',
|
||||
'minute': 'Minutes',
|
||||
'count': 'Times'
|
||||
disclaimers:'Page Description',
|
||||
prompt1: 'Drag or paste text, files here, or ',
|
||||
prompt2: 'Days (<7) or limit times (delete after 24h)',
|
||||
prompt3: 'Please enter the text you want to send, supports MarkDown format',
|
||||
share: 'Share',
|
||||
textShare: 'Text Share',
|
||||
clickUpload: 'Click to upload',
|
||||
pleaseInputExpireValue: 'Please enter the expiration value',
|
||||
expireStyle: 'Expiration style',
|
||||
expireData: {
|
||||
day: 'Days',
|
||||
hour: 'Hours',
|
||||
forever: 'Forever',
|
||||
minute: 'Minutes',
|
||||
count: 'Times'
|
||||
},
|
||||
'expireValue': {
|
||||
'day': 'Days',
|
||||
'hour': 'Hours',
|
||||
'minute': 'Minutes',
|
||||
'count': 'Times'
|
||||
expireValue: {
|
||||
day: 'Day',
|
||||
hour: 'Hour',
|
||||
minute: 'Minute',
|
||||
count: 'Time'
|
||||
},
|
||||
'fileType': {
|
||||
'file': 'File',
|
||||
'text': 'Text'
|
||||
fileType: {
|
||||
file: 'File',
|
||||
text: 'Text'
|
||||
}
|
||||
},
|
||||
fileBox: {
|
||||
copySuccess: 'Copied successfully',
|
||||
inputNotEmpty: 'Please enter the five-digit pickup code',
|
||||
fileBox: 'File Box',
|
||||
textDetail: 'Text Detail',
|
||||
inputNotEmpty: 'Please enter a five-digit pickup code',
|
||||
sendFileBox: 'Sending Box',
|
||||
ok:'OK',
|
||||
receiveFileBox: 'Receiving Box',
|
||||
textDetail: 'Text Details',
|
||||
copy: 'Copy',
|
||||
close: 'Close',
|
||||
delete: 'Delete',
|
||||
download: 'Click to download',
|
||||
detail: 'View details',
|
||||
copyLink: 'Copy link',
|
||||
download: 'Click to Download',
|
||||
detail: 'View Details',
|
||||
copyLink: 'Copy Link',
|
||||
},
|
||||
admin:{
|
||||
about:{
|
||||
'source1':'This project is open source on Github: ',
|
||||
'source2':'FileCodeBox'
|
||||
admin: {
|
||||
about: {
|
||||
source1: 'The project is open source on Github: ',
|
||||
source2: 'FileCodeBox'
|
||||
},
|
||||
settings: {
|
||||
name: 'Website Name',
|
||||
description: 'Website Description',
|
||||
name: 'Site Name',
|
||||
description: 'Site Description',
|
||||
uploadlimit: 'Upload Limit',
|
||||
explain:'Interface Description',
|
||||
errorlimit: 'Error Limit',
|
||||
keywords: 'Keywords',
|
||||
background: 'Background Image',
|
||||
max_save_seconds: 'Maximum Save Time',
|
||||
maxSaveSecondsNote: 'Maximum save time in seconds, default is 0 which means 7 days',
|
||||
admin_token: 'Admin Password',
|
||||
uploadSize: 'File Size',
|
||||
uploadSizeNote: 'Maximum file size, unit: (bit), 1mb = 1 * 1024 * 1024',
|
||||
uploadSizeNote: 'Maximum file size, in bytes: (Bytes), 1mb=1 * 1024 * 1024',
|
||||
openUpload: {
|
||||
'title': 'Enable Upload',
|
||||
'open': 'Enable Guest Upload',
|
||||
'close': 'Disable Guest Upload',
|
||||
'note': 'After disabling, login to the backend is required for uploading.',
|
||||
title: 'Enable Upload',
|
||||
open: 'Enable Guest Upload',
|
||||
close: 'Disable Guest Upload',
|
||||
note: 'After disabling, you need to log in to the backend to upload',
|
||||
},
|
||||
file_storage: {
|
||||
'title': 'Storage Engine',
|
||||
'local': 'Local Storage',
|
||||
's3': 'S3 Storage',
|
||||
'note': 'FileCodeBox needs to be restarted after updating.',
|
||||
title: 'Storage Engine',
|
||||
local: 'Local Storage',
|
||||
s3: 'S3 Storage',
|
||||
note: 'FileCodeBox needs to be restarted after update',
|
||||
},
|
||||
mei: 'Every',
|
||||
minute: 'Minutes',
|
||||
minute: 'Minute',
|
||||
upload: 'Upload',
|
||||
files: 'Files',
|
||||
allow: 'Allow',
|
||||
@@ -75,31 +81,41 @@ export default {
|
||||
saveSuccess: 'Saved successfully',
|
||||
},
|
||||
fileView: {
|
||||
code: 'Access Code',
|
||||
code: 'Pickup Code',
|
||||
prefix: 'File Prefix',
|
||||
suffix: 'File Suffix',
|
||||
text: 'Text',
|
||||
used_count: 'Used Count',
|
||||
expired_count: 'Available Count',
|
||||
expired_count: 'Available Times',
|
||||
size: 'File Size',
|
||||
expired_at: 'Expiration Time',
|
||||
file_path: 'File Path',
|
||||
action: 'Action',
|
||||
delete: 'Delete',
|
||||
delete_success: 'Deleted successfully',
|
||||
forever: 'Permanent',
|
||||
unlimited_count: 'Unlimited Times',
|
||||
download: 'Download',
|
||||
download_fail: 'File save failed, please try again later~',
|
||||
},
|
||||
menu: {
|
||||
'fileManage': 'File Management',
|
||||
'systemSetting': 'System Settings',
|
||||
'about': 'About Us',
|
||||
'color': 'Color Mode',
|
||||
'signout': 'Sign Out',
|
||||
fileManage: 'File Management',
|
||||
systemSetting: 'System Settings',
|
||||
about: 'About Us',
|
||||
color: 'Color Mode',
|
||||
signout: 'Sign Out',
|
||||
},
|
||||
login: {
|
||||
'managePassword': 'Admin Password',
|
||||
'passwordNotEmpty': 'Password cannot be empty',
|
||||
'login': 'Login',
|
||||
'loginSuccess': 'Login successful',
|
||||
'loginError': 'Login failed',
|
||||
managePassword: 'Admin Password',
|
||||
passwordNotEmpty: 'Password cannot be empty',
|
||||
login: 'Login',
|
||||
loginSuccess: 'Login successful',
|
||||
loginError: 'Login failed',
|
||||
}
|
||||
},
|
||||
msg:{
|
||||
fileOverSize: 'File too large',
|
||||
fileUploadFail: 'Upload failed',
|
||||
fileUploadSuccess: 'Upload successful',
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,121 @@
|
||||
export default {
|
||||
send: {
|
||||
disclaimers:'Descripción de la página',
|
||||
prompt1: 'Arrastre o pegue texto, archivos aquí, o ',
|
||||
prompt2: 'Días (<7) o limitar veces (eliminar después de 24h)',
|
||||
prompt3: 'Por favor, introduzca el texto que desea enviar, soporta formato MarkDown',
|
||||
share: 'Compartir',
|
||||
textShare: 'Compartir texto',
|
||||
clickUpload: 'Hacer clic para cargar',
|
||||
pleaseInputExpireValue: 'Por favor, introduzca el valor de expiración',
|
||||
expireStyle: 'Estilo de expiración',
|
||||
expireData: {
|
||||
day: 'Días',
|
||||
hour: 'Horas',
|
||||
forever: 'Para siempre',
|
||||
minute: 'Minutos',
|
||||
count: 'Veces'
|
||||
},
|
||||
expireValue: {
|
||||
day: 'Día',
|
||||
hour: 'Hora',
|
||||
minute: 'Minuto',
|
||||
count: 'Vez'
|
||||
},
|
||||
fileType: {
|
||||
file: 'Archivo',
|
||||
text: 'Texto'
|
||||
}
|
||||
},
|
||||
fileBox: {
|
||||
copySuccess: 'Copiado con éxito',
|
||||
inputNotEmpty: 'Por favor, introduzca un código de recogida de cinco dígitos',
|
||||
sendFileBox: 'Caja de envío',
|
||||
ok:'Aceptar',
|
||||
receiveFileBox: 'Caja de recepción',
|
||||
textDetail: 'Detalles del texto',
|
||||
copy: 'Copiar',
|
||||
close: 'Cerrar',
|
||||
delete: 'Eliminar',
|
||||
download: 'Haz clic para descargar',
|
||||
detail: 'Ver detalles',
|
||||
copyLink: 'Copiar enlace',
|
||||
},
|
||||
admin: {
|
||||
about: {
|
||||
source1: 'El proyecto es de código abierto en Github: ',
|
||||
source2: 'FileCodeBox'
|
||||
},
|
||||
settings: {
|
||||
name: 'Nombre del sitio',
|
||||
description: 'Descripción del sitio',
|
||||
uploadlimit: 'Límite de carga',
|
||||
explain:'Descripción de la interfaz',
|
||||
errorlimit: 'Límite de errores',
|
||||
keywords: 'Palabras clave',
|
||||
max_save_seconds: 'Tiempo máximo de guardado',
|
||||
maxSaveSecondsNote: 'Tiempo máximo de guardado en segundos, el valor predeterminado es 0, lo que significa 7 días',
|
||||
background: 'Imagen de fondo',
|
||||
admin_token: 'Contraseña de administrador',
|
||||
uploadSize: 'Tamaño del archivo',
|
||||
uploadSizeNote: 'Tamaño máximo del archivo, en bytes: (Bytes), 1mb=1 * 1024 * 1024',
|
||||
openUpload: {
|
||||
title: 'Habilitar carga',
|
||||
open: 'Habilitar carga de invitados',
|
||||
close: 'Deshabilitar carga de invitados',
|
||||
note: 'Después de desactivar, debe iniciar sesión en el backend para cargar',
|
||||
},
|
||||
file_storage: {
|
||||
title: 'Motor de almacenamiento',
|
||||
local: 'Almacenamiento local',
|
||||
s3: 'Almacenamiento S3',
|
||||
note: 'FileCodeBox necesita reiniciarse después de la actualización',
|
||||
},
|
||||
mei: 'Cada',
|
||||
minute: 'Minuto',
|
||||
upload: 'Cargar',
|
||||
files: 'Archivos',
|
||||
allow: 'Permitir',
|
||||
errors: 'Errores',
|
||||
save: 'Guardar',
|
||||
saveSuccess: 'Guardado con éxito',
|
||||
},
|
||||
fileView: {
|
||||
code: 'Código de recogida',
|
||||
prefix: 'Prefijo del archivo',
|
||||
suffix: 'Sufijo del archivo',
|
||||
text: 'Texto',
|
||||
used_count: 'Conteo de uso',
|
||||
expired_count: 'Veces disponibles',
|
||||
size: 'Tamaño del archivo',
|
||||
expired_at: 'Fecha de expiración',
|
||||
file_path: 'Ruta del archivo',
|
||||
action: 'Acción',
|
||||
delete: 'Eliminar',
|
||||
delete_success: 'Eliminado con éxito',
|
||||
forever: 'Permanente',
|
||||
unlimited_count: 'Veces ilimitadas',
|
||||
download: 'Descargar',
|
||||
download_fail: 'Fallo al guardar el archivo, intente nuevamente más tarde~',
|
||||
},
|
||||
menu: {
|
||||
fileManage: 'Gestión de archivos',
|
||||
systemSetting: 'Configuración del sistema',
|
||||
about: 'Sobre nosotros',
|
||||
color: 'Modo de color',
|
||||
signout: 'Cerrar sesión',
|
||||
},
|
||||
login: {
|
||||
managePassword: 'Contraseña de administrador',
|
||||
passwordNotEmpty: 'La contraseña no puede estar vacía',
|
||||
login: 'Iniciar sesión',
|
||||
loginSuccess: 'Inicio de sesión exitoso',
|
||||
loginError: 'Error al iniciar sesión',
|
||||
}
|
||||
},
|
||||
msg:{
|
||||
fileOverSize: 'Archivo demasiado grande',
|
||||
fileUploadFail: 'Error de carga',
|
||||
fileUploadSuccess: 'Carga exitosa',
|
||||
}
|
||||
};
|
||||
@@ -1,10 +1,9 @@
|
||||
import { createI18n } from 'vue-i18n' //引入vue-i18n组件
|
||||
import messages from './index'
|
||||
const language = (
|
||||
navigator.language || 'zh'
|
||||
navigator.language || 'zh_cn'
|
||||
).toLowerCase();
|
||||
|
||||
const lang = localStorage.getItem('language') || language
|
||||
const lang = (localStorage.getItem('language') || language).replace(/-/, '_');
|
||||
|
||||
const i18n = createI18n({
|
||||
silentTranslationWarn: true,
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
import zh from './zh'
|
||||
import en from './en'
|
||||
|
||||
import zh_cn from './zh_cn';
|
||||
import zh from './zh';
|
||||
import es from './es';
|
||||
import en from './en';
|
||||
import zh_tw from './zh_tw'
|
||||
|
||||
export default {
|
||||
zh_cn,
|
||||
en,
|
||||
zh_tw,
|
||||
zh,
|
||||
en
|
||||
es
|
||||
}
|
||||
@@ -1,37 +1,38 @@
|
||||
export default {
|
||||
send: {
|
||||
'mzsm':'免责声明',
|
||||
'alert': '根据《中华人民共和国网络安全法》、《中华人民共和国刑法》、《中华人民共和国治安管理处罚法》等相关规定。 传播或存储违法、违规内容,会受到相关处罚,严重者将承担刑事责任。请勿上传非法文件,本站坚决配合相关部门,确保网络内容的安全,和谐,打造绿色网络环境。',
|
||||
'prompt1': '将文字、文件拖、粘贴到此处,或 ',
|
||||
'prompt2': '天数<7或限制次数(24h后删除)',
|
||||
'prompt3': '请输入您要寄出的文本',
|
||||
'share': '分享',
|
||||
'textShare': '文本分享',
|
||||
'clickUpload': '点击上传',
|
||||
'pleaseInputExpireValue': '请输入有效期',
|
||||
'expireStyle': '过期方式',
|
||||
'expireData': {
|
||||
'day': '天数',
|
||||
'hour': '小时',
|
||||
'forever': '永久',
|
||||
'minute': '分钟',
|
||||
'count': '次数'
|
||||
disclaimers:'页面说明',
|
||||
prompt1: '将文字、文件拖、粘贴到此处,或 ',
|
||||
prompt2: '天数<7或限制次数(24h后删除)',
|
||||
prompt3: '请输入您要寄出的文本,支持MarkDown格式',
|
||||
share: '分享',
|
||||
textShare: '文本分享',
|
||||
clickUpload: '点击上传',
|
||||
pleaseInputExpireValue: '请输入有效期',
|
||||
expireStyle: '过期方式',
|
||||
expireData: {
|
||||
day: '天数',
|
||||
hour: '小时',
|
||||
forever: '永久',
|
||||
minute: '分钟',
|
||||
count: '次数'
|
||||
},
|
||||
'expireValue': {
|
||||
'day': '天',
|
||||
'hour': '时',
|
||||
'minute': '分',
|
||||
'count': '次'
|
||||
expireValue: {
|
||||
day: '天',
|
||||
hour: '时',
|
||||
minute: '分',
|
||||
count: '次'
|
||||
},
|
||||
'fileType': {
|
||||
'file': '文件',
|
||||
'text': '文本'
|
||||
fileType: {
|
||||
file: '文件',
|
||||
text: '文本'
|
||||
}
|
||||
},
|
||||
fileBox: {
|
||||
copySuccess: '复制成功',
|
||||
inputNotEmpty: '请输入五位取件码',
|
||||
fileBox: '文件箱',
|
||||
sendFileBox: '寄件箱',
|
||||
ok:'确定',
|
||||
receiveFileBox: '收件箱',
|
||||
textDetail: '文本详情',
|
||||
copy: '复 制',
|
||||
close: '关 闭',
|
||||
@@ -42,28 +43,36 @@ export default {
|
||||
},
|
||||
admin: {
|
||||
about: {
|
||||
'source1': '本项目开源于Github:',
|
||||
'source2': 'FileCodeBox'
|
||||
source1: '本项目开源于Github:',
|
||||
source2: 'FileCodeBox'
|
||||
},
|
||||
settings: {
|
||||
name: '网站名称',
|
||||
description: '网站描述',
|
||||
uploadlimit: '上传限制',
|
||||
explain:'界面说明',
|
||||
errorlimit: '错误限制',
|
||||
keywords: '关键词',
|
||||
notify_title: '通知标题',
|
||||
notify_content: '通知内容',
|
||||
background: '背景图片',
|
||||
max_save_seconds: '最长保存',
|
||||
maxSaveSecondsNote: '最长保存时间,单位:(秒),默认为0则为7天',
|
||||
admin_token: '管理密码',
|
||||
uploadSize: '文件大小',
|
||||
expireStyle: '过期方式',
|
||||
uploadSizeNote: '最大文件大小,单位:(Bytes),1mb=1 * 1024 * 1024',
|
||||
openUpload: {
|
||||
'title': '开启上传',
|
||||
'open': '开启游客上传',
|
||||
'close': '关闭游客上传',
|
||||
'note': '关闭之后需要登录后台方可上传',
|
||||
title: '开启上传',
|
||||
open: '开启游客上传',
|
||||
close: '关闭游客上传',
|
||||
note: '关闭之后需要登录后台方可上传',
|
||||
},
|
||||
file_storage: {
|
||||
'title': '存储引擎',
|
||||
'local': '本地存储',
|
||||
's3': 'S3存储',
|
||||
'note': '更新后需要重启FileCodeBox',
|
||||
title: '存储引擎',
|
||||
local: '本地存储',
|
||||
s3: 'S3存储',
|
||||
note: '更新后需要重启FileCodeBox',
|
||||
},
|
||||
mei: '每',
|
||||
minute: '分钟',
|
||||
@@ -86,20 +95,33 @@ export default {
|
||||
file_path: '文件路径',
|
||||
action: '操作',
|
||||
delete: '删除',
|
||||
delete_success: '删除成功',
|
||||
forever: '永久有效',
|
||||
unlimited_count: '不限次数',
|
||||
download: '下载',
|
||||
download_fail: '文件保存失败,请稍后再试~',
|
||||
},
|
||||
menu: {
|
||||
'fileManage': '文件管理',
|
||||
'systemSetting': '系统设置',
|
||||
'about': '关于我们',
|
||||
'color': '颜色模式',
|
||||
'signout': '退出登录',
|
||||
fileManage: '文件管理',
|
||||
systemSetting: '系统设置',
|
||||
about: '关于我们',
|
||||
color: '颜色模式',
|
||||
send: '寄件',
|
||||
receive: '收件',
|
||||
signout: '退出登录',
|
||||
},
|
||||
login: {
|
||||
'managePassword': '管理密码',
|
||||
'passwordNotEmpty': '密码不能为空',
|
||||
'login': '登 录',
|
||||
'loginSuccess': '登录成功',
|
||||
'loginError': '登录失败',
|
||||
managePassword: '管理密码',
|
||||
passwordNotEmpty: '密码不能为空',
|
||||
login: '登 录',
|
||||
loginSuccess: '登录成功',
|
||||
loginError: '登录失败',
|
||||
}
|
||||
},
|
||||
msg:{
|
||||
fileOverSize: '文件过大',
|
||||
fileUploadFail: '上传失败',
|
||||
fileUploadSuccess: '上传成功',
|
||||
uploadClose: '本站已关闭游客上传',
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,121 @@
|
||||
export default {
|
||||
send: {
|
||||
disclaimers:'页面说明',
|
||||
prompt1: '将文字、文件拖、粘贴到此处,或 ',
|
||||
prompt2: '天数<7或限制次数(24h后删除)',
|
||||
prompt3: '请输入您要寄出的文本,支持MarkDown格式',
|
||||
share: '分享',
|
||||
textShare: '文本分享',
|
||||
clickUpload: '点击上传',
|
||||
pleaseInputExpireValue: '请输入有效期',
|
||||
expireStyle: '过期方式',
|
||||
expireData: {
|
||||
day: '天数',
|
||||
hour: '小时',
|
||||
forever: '永久',
|
||||
minute: '分钟',
|
||||
count: '次数'
|
||||
},
|
||||
expireValue: {
|
||||
day: '天',
|
||||
hour: '时',
|
||||
minute: '分',
|
||||
count: '次'
|
||||
},
|
||||
fileType: {
|
||||
file: '文件',
|
||||
text: '文本'
|
||||
}
|
||||
},
|
||||
fileBox: {
|
||||
copySuccess: '复制成功',
|
||||
inputNotEmpty: '请输入五位取件码',
|
||||
sendFileBox: '寄件箱',
|
||||
ok:'确定',
|
||||
receiveFileBox: '收件箱',
|
||||
textDetail: '文本详情',
|
||||
copy: '复 制',
|
||||
close: '关 闭',
|
||||
delete: '删 除',
|
||||
download: '点 击 下 载',
|
||||
detail: '查 看 详 情',
|
||||
copyLink: '复制链接',
|
||||
},
|
||||
admin: {
|
||||
about: {
|
||||
source1: '本项目开源于Github:',
|
||||
source2: 'FileCodeBox'
|
||||
},
|
||||
settings: {
|
||||
name: '网站名称',
|
||||
description: '网站描述',
|
||||
uploadlimit: '上传限制',
|
||||
explain:'界面说明',
|
||||
errorlimit: '错误限制',
|
||||
keywords: '关键词',
|
||||
background: '背景图片',
|
||||
admin_token: '管理密码',
|
||||
uploadSize: '文件大小',
|
||||
max_save_seconds: '最长保存',
|
||||
maxSaveSecondsNote: '最长保存时间,单位:(秒),默认为0则为7天',
|
||||
uploadSizeNote: '最大文件大小,单位:(Bytes),1mb=1 * 1024 * 1024',
|
||||
openUpload: {
|
||||
title: '开启上传',
|
||||
open: '开启游客上传',
|
||||
close: '关闭游客上传',
|
||||
note: '关闭之后需要登录后台方可上传',
|
||||
},
|
||||
file_storage: {
|
||||
title: '存储引擎',
|
||||
local: '本地存储',
|
||||
s3: 'S3存储',
|
||||
note: '更新后需要重启FileCodeBox',
|
||||
},
|
||||
mei: '每',
|
||||
minute: '分钟',
|
||||
upload: '上传',
|
||||
files: '个文件',
|
||||
allow: '允许',
|
||||
errors: '次错误',
|
||||
save: '保存',
|
||||
saveSuccess: '保存成功',
|
||||
},
|
||||
fileView: {
|
||||
code: '取件码',
|
||||
prefix: '文件前缀',
|
||||
suffix: '文件后缀',
|
||||
text: '文本',
|
||||
used_count: '已使用次数',
|
||||
expired_count: '可用次数',
|
||||
size: '文件大小',
|
||||
expired_at: '过期时间',
|
||||
file_path: '文件路径',
|
||||
action: '操作',
|
||||
delete: '删除',
|
||||
delete_success: '删除成功',
|
||||
forever: '永久有效',
|
||||
unlimited_count: '不限次数',
|
||||
download: '下载',
|
||||
download_fail: '文件保存失败,请稍后再试~',
|
||||
},
|
||||
menu: {
|
||||
fileManage: '文件管理',
|
||||
systemSetting: '系统设置',
|
||||
about: '关于我们',
|
||||
color: '颜色模式',
|
||||
signout: '退出登录',
|
||||
},
|
||||
login: {
|
||||
managePassword: '管理密码',
|
||||
passwordNotEmpty: '密码不能为空',
|
||||
login: '登 录',
|
||||
loginSuccess: '登录成功',
|
||||
loginError: '登录失败',
|
||||
}
|
||||
},
|
||||
msg:{
|
||||
fileOverSize: '文件过大',
|
||||
fileUploadFail: '上传失败',
|
||||
fileUploadSuccess: '上传成功',
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,121 @@
|
||||
export default {
|
||||
send: {
|
||||
disclaimers:'頁面說明',
|
||||
prompt1: '將文字、文件拖、粘貼到此處,或 ',
|
||||
prompt2: '天數<7或限制次數(24h後刪除)',
|
||||
prompt3: '請輸入您要寄出的文本,支持MarkDown格式',
|
||||
share: '分享',
|
||||
textShare: '文本分享',
|
||||
clickUpload: '點擊上傳',
|
||||
pleaseInputExpireValue: '請輸入有效期',
|
||||
expireStyle: '過期方式',
|
||||
expireData: {
|
||||
day: '天數',
|
||||
hour: '小時',
|
||||
forever: '永久',
|
||||
minute: '分鐘',
|
||||
count: '次數'
|
||||
},
|
||||
expireValue: {
|
||||
day: '天',
|
||||
hour: '時',
|
||||
minute: '分',
|
||||
count: '次'
|
||||
},
|
||||
fileType: {
|
||||
file: '文件',
|
||||
text: '文本'
|
||||
}
|
||||
},
|
||||
fileBox: {
|
||||
copySuccess: '複製成功',
|
||||
inputNotEmpty: '請輸入五位取件碼',
|
||||
sendFileBox: '寄件箱',
|
||||
ok:'確定',
|
||||
receiveFileBox: '收件箱',
|
||||
textDetail: '文本詳情',
|
||||
copy: '複 製',
|
||||
close: '關 閉',
|
||||
delete: '刪 除',
|
||||
download: '點 擊 下 載',
|
||||
detail: '查 看 詳 情',
|
||||
copyLink: '複製連結',
|
||||
},
|
||||
admin: {
|
||||
about: {
|
||||
source1: '本項目開源於Github:',
|
||||
source2: 'FileCodeBox'
|
||||
},
|
||||
settings: {
|
||||
name: '網站名稱',
|
||||
description: '網站描述',
|
||||
uploadlimit: '上傳限制',
|
||||
explain:'界面說明',
|
||||
errorlimit: '錯誤限制',
|
||||
max_save_seconds: '最長保存',
|
||||
maxSaveSecondsNote: '最長保存時間,單位:(秒),默認為0則為7天',
|
||||
keywords: '關鍵詞',
|
||||
background: '背景圖片',
|
||||
admin_token: '管理密碼',
|
||||
uploadSize: '文件大小',
|
||||
uploadSizeNote: '最大文件大小,單位:(Bytes),1mb=1 * 1024 * 1024',
|
||||
openUpload: {
|
||||
title: '開啟上傳',
|
||||
open: '開啟遊客上傳',
|
||||
close: '關閉遊客上傳',
|
||||
note: '關閉之後需要登錄後臺方可上傳',
|
||||
},
|
||||
file_storage: {
|
||||
title: '存儲引擎',
|
||||
local: '本地存儲',
|
||||
s3: 'S3存儲',
|
||||
note: '更新後需要重啟FileCodeBox',
|
||||
},
|
||||
mei: '每',
|
||||
minute: '分鐘',
|
||||
upload: '上傳',
|
||||
files: '個文件',
|
||||
allow: '允許',
|
||||
errors: '次錯誤',
|
||||
save: '保存',
|
||||
saveSuccess: '保存成功',
|
||||
},
|
||||
fileView: {
|
||||
code: '取件碼',
|
||||
prefix: '文件前綴',
|
||||
suffix: '文件後綴',
|
||||
text: '文本',
|
||||
used_count: '已使用次數',
|
||||
expired_count: '可用次數',
|
||||
size: '文件大小',
|
||||
expired_at: '過期時間',
|
||||
file_path: '文件路徑',
|
||||
action: '操作',
|
||||
delete: '刪除',
|
||||
delete_success: '刪除成功',
|
||||
forever: '永久有效',
|
||||
unlimited_count: '不限次數',
|
||||
download: '下載',
|
||||
download_fail: '文件保存失敗,請稍後再試~',
|
||||
},
|
||||
menu: {
|
||||
fileManage: '文件管理',
|
||||
systemSetting: '系統設置',
|
||||
about: '關於我們',
|
||||
color: '顏色模式',
|
||||
signout: '退出登錄',
|
||||
},
|
||||
login: {
|
||||
managePassword: '管理密碼',
|
||||
passwordNotEmpty: '密碼不能為空',
|
||||
login: '登 錄',
|
||||
loginSuccess: '登錄成功',
|
||||
loginError: '登錄失敗',
|
||||
}
|
||||
},
|
||||
msg:{
|
||||
fileOverSize: '文件過大',
|
||||
fileUploadFail: '上傳失敗',
|
||||
fileUploadSuccess: '上傳成功',
|
||||
}
|
||||
};
|
||||
@@ -0,0 +1,7 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import {ref} from "vue";
|
||||
|
||||
export const useConfigStore = defineStore('config', () => {
|
||||
const config:any = ref(JSON.parse(localStorage.getItem('config') || '{}') || {}); // 配置
|
||||
return { config };
|
||||
});
|
||||
@@ -9,12 +9,12 @@ export const useFileDataStore = defineStore('fileData', () => {
|
||||
localStorage.setItem('shareData', JSON.stringify(shareData));
|
||||
}
|
||||
function addReceiveData(data:any) {
|
||||
receiveData.push(data);
|
||||
receiveData.unshift(data);
|
||||
save();
|
||||
}
|
||||
|
||||
function addShareData(data:any) {
|
||||
shareData.push(data);
|
||||
shareData.unshift(data);
|
||||
save();
|
||||
}
|
||||
|
||||
|
||||
@@ -14,6 +14,9 @@ instance.interceptors.request.use(
|
||||
});
|
||||
instance.interceptors.response.use(
|
||||
(response:any) => {
|
||||
if (response.status === 200 && response.config.url === '/admin/file/download') {
|
||||
return response;
|
||||
}
|
||||
if (response.data.code === 200) {
|
||||
return response.data;
|
||||
} else {
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
export function formatTimestamp(timestamp: string): string {
|
||||
const date = new Date(timestamp);
|
||||
const year = date.getFullYear();
|
||||
const month = (date.getMonth() + 1).toString().padStart(2, '0');
|
||||
const day = date.getDate().toString().padStart(2, '0');
|
||||
const hours = date.getHours().toString().padStart(2, '0');
|
||||
const minutes = date.getMinutes().toString().padStart(2, '0');
|
||||
const seconds = date.getSeconds().toString().padStart(2, '0');
|
||||
|
||||
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
|
||||
}
|
||||
@@ -53,7 +53,15 @@ const menus = ref([
|
||||
{
|
||||
name: t('admin.menu.about'),
|
||||
path: '/admin/about',
|
||||
}
|
||||
},
|
||||
{
|
||||
name: t('admin.menu.send'),
|
||||
path: '/#/send',
|
||||
},
|
||||
{
|
||||
name: t('admin.menu.receive'),
|
||||
path: '/#/',
|
||||
},
|
||||
]);
|
||||
const refreshLoginStatus = () => {
|
||||
adminData.updateAdminPwd(adminData.adminPassword);
|
||||
|
||||
@@ -10,7 +10,11 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="used_count" :label="t('admin.fileView.used_count')" />
|
||||
<el-table-column prop="expired_count" :label="t('admin.fileView.expired_count')" />
|
||||
<el-table-column prop="expired_count" :label="t('admin.fileView.expired_count')">
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.expired_count > -1 ? scope.row.expired_count : t('admin.fileView.unlimited_count') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="size" :label="t('admin.fileView.size')">
|
||||
<template #default="scope">
|
||||
<span>{{ Math.round(scope.row.size/1024/1024*100)/100 }}MB</span>
|
||||
@@ -18,7 +22,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="expired_at" :label="t('admin.fileView.expired_at')">
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.expired_at ? scope.row.expired_at : '永久有效' }}</span>
|
||||
<span>{{ scope.row.expired_at ? formatTimestamp(scope.row.expired_at) : t('admin.fileView.forever') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="file_path" :label="t('admin.fileView.file_path')" />
|
||||
@@ -28,14 +32,16 @@
|
||||
</template>
|
||||
<template #default="scope">
|
||||
<el-button type="danger" size="small" @click="deleteFile(scope.row.id)">{{ t('admin.fileView.delete') }}</el-button>
|
||||
<el-button type="success" size="small" @click="downloadFile(scope.row.id)" v-if="scope.row.file_path">{{ t('admin.fileView.download') }}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination @size-change="updatePageSize" @current-change="updateCurrentPage" background layout="prev, pager, next" :page-size="params.size" :page-count="params.total/params.size" :total="params.total" />
|
||||
<el-pagination @size-change="updatePageSize" @current-change="updateCurrentPage" background layout="prev, pager, next" :page-size="params.size" :page-count="Math.round(params.total/params.size)" :total="params.total" />
|
||||
</main>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { request } from "@/utils/request";
|
||||
import { formatTimestamp } from "@/utils/timestamp-format"
|
||||
import { ref } from "vue";
|
||||
import { ElMessage } from "element-plus";
|
||||
const tableData = ref([]);
|
||||
@@ -60,10 +66,70 @@ const deleteFile = (id: number) => {
|
||||
id,
|
||||
},
|
||||
}).then(() => {
|
||||
ElMessage.success('删除成功');
|
||||
ElMessage.success(t('admin.fileView.delete_success'));
|
||||
refreshData();
|
||||
});
|
||||
};
|
||||
const downloadFile = (id: number) => {
|
||||
|
||||
request({
|
||||
url: '/admin/file/download',
|
||||
method: 'get',
|
||||
params: {
|
||||
id,
|
||||
},
|
||||
responseType: 'blob'
|
||||
}).then((response: any) => {
|
||||
const contentDisposition = response.headers['content-disposition'];
|
||||
let filename = 'file';
|
||||
// 使用正则表达式来提取文件名
|
||||
const filenameMatch = contentDisposition.match(/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/);
|
||||
if (filenameMatch != null && filenameMatch[1]) {
|
||||
// 去除文件名周围的引号
|
||||
filename = filenameMatch[1].replace(/['"]/g, '');
|
||||
}
|
||||
// @ts-ignore
|
||||
if (window.showSaveFilePicker)
|
||||
saveFileByWebApi(response.data, filename).catch(() => {
|
||||
// ElMessage.error('文件保存函数不支持您的浏览器');
|
||||
saveFileByElementA(response.data, filename).catch(() => {
|
||||
ElMessage.error(t('admin.fileView.download_fail'));
|
||||
})
|
||||
})
|
||||
else
|
||||
saveFileByElementA(response.data, filename).catch(() => {
|
||||
ElMessage.error(t('admin.fileView.download_fail'));
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
async function saveFileByElementA(fileBlob: Blob, filename: string) {
|
||||
const downloadUrl = window.URL.createObjectURL(fileBlob);
|
||||
const link = document.createElement('a');
|
||||
link.href = downloadUrl;
|
||||
link.download = filename; // 设置下载文件名
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
// 清理并释放URL对象
|
||||
window.URL.revokeObjectURL(downloadUrl);
|
||||
document.body.removeChild(link);
|
||||
}
|
||||
|
||||
async function saveFileByWebApi(fileBlob: Blob, filename: string) {
|
||||
// 创建一个新句柄。
|
||||
// @ts-ignore
|
||||
const newHandle = await window.showSaveFilePicker({
|
||||
suggestedName: filename,
|
||||
});
|
||||
// 创建一个 FileSystemWritableFileStream 用于写入。
|
||||
const writableStream = await newHandle.createWritable();
|
||||
// 写入我们的文件。
|
||||
await writableStream.write(fileBlob);
|
||||
// 关闭文件并将内容写入磁盘。
|
||||
await writableStream.close();
|
||||
}
|
||||
|
||||
|
||||
const updatePageSize=(pageSize: number) => {
|
||||
params.value.size = pageSize;
|
||||
refreshData();
|
||||
|
||||
@@ -9,26 +9,52 @@
|
||||
<el-form-item size="large" :label="t('admin.settings.keywords')" style="letter-spacing: 0.3rem">
|
||||
<el-input v-model="config.keywords" />
|
||||
</el-form-item>
|
||||
<el-form-item size="large" :label="t('admin.settings.notify_title')">
|
||||
<el-input v-model="config.notify_title" />
|
||||
</el-form-item>
|
||||
<el-form-item size="large" :label="t('admin.settings.notify_content')">
|
||||
<el-input v-model="config.notify_content" />
|
||||
</el-form-item>
|
||||
<el-form-item size="large" :label="t('admin.settings.background')">
|
||||
<el-input v-model="config.background" />
|
||||
<el-input v-model="config.background" placeholder="url" />
|
||||
</el-form-item>
|
||||
<el-form-item size="large" :label="t('admin.settings.explain')">
|
||||
<el-input type="textarea" v-model="config.page_explain" placeholder="explain" />
|
||||
</el-form-item>
|
||||
<el-form-item size="large" :label="t('admin.settings.admin_token')">
|
||||
<el-input type="password" v-model="config.admin_token" />
|
||||
</el-form-item>
|
||||
<el-form-item size="large" :label="t('admin.settings.uploadSize')">
|
||||
<el-input type="number" v-model="config.uploadSize" />
|
||||
<template #append>Bytes</template>
|
||||
<small>{{ t('admin.settings.uploadSizeNote') }}</small>
|
||||
<template #append></template>
|
||||
<small>Bytes:{{ t('admin.settings.uploadSizeNote') }}</small>
|
||||
</el-form-item>
|
||||
<el-form-item size="large" :label="t('admin.settings.max_save_seconds')">
|
||||
<el-input type="number" v-model="config.max_save_seconds" />
|
||||
<small>Seconds:{{t('admin.settings.maxSaveSecondsNote')}}</small>
|
||||
</el-form-item>
|
||||
<el-form-item size="large" :label="t('admin.settings.expireStyle')" >
|
||||
<el-select
|
||||
v-model="config.expireStyle"
|
||||
multiple
|
||||
style="width: 100%"
|
||||
>
|
||||
<el-option :label="t('send.expireData.day')" value="day" />
|
||||
<el-option :label="t('send.expireData.hour')" value="hour" />
|
||||
<el-option :label="t('send.expireData.minute')" value="minute" />
|
||||
<el-option :label="t('send.expireData.forever')" value="forever" />
|
||||
<el-option :label="t('send.expireData.count')" value="count" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item size="large" :label="t('admin.settings.openUpload.title')">
|
||||
<el-select v-model="config.openUpload">
|
||||
<el-select v-model="config.openUpload" style="width: 80%">
|
||||
<el-option :label="t('admin.settings.openUpload.open')" :value="1" />
|
||||
<el-option :label="t('admin.settings.openUpload.close')" :value="0" />
|
||||
</el-select>
|
||||
<small style="margin-left: 0.4rem">{{ t('admin.settings.openUpload.note') }}</small>
|
||||
</el-form-item>
|
||||
<el-form-item size="large" :label="t('admin.settings.file_storage.title')">
|
||||
<el-select v-model="config.file_storage">
|
||||
<el-select v-model="config.file_storage" style="width: 80%">
|
||||
<el-option :label="t('admin.settings.file_storage.local')" value="local" />
|
||||
<el-option :label="t('admin.settings.file_storage.s3')" value="s3" />
|
||||
</el-select>
|
||||
@@ -46,12 +72,21 @@
|
||||
</el-form-item>
|
||||
<el-form-item size="large" label="S3 EndpointUrl">
|
||||
<el-input v-model="config.s3_endpoint_url" />
|
||||
</el-form-item>
|
||||
<el-form-item size="large" label="S3 hostname">
|
||||
<el-input v-model="config.s3_hostname" />
|
||||
</el-form-item>
|
||||
<el-form-item size="large" label="S3 region name">
|
||||
<el-input v-model="config.s3_region_name" />
|
||||
</el-form-item>
|
||||
<el-form-item size="large" label="S3 Signature Version">
|
||||
<el-input v-model="config.s3_signature_version" />
|
||||
</el-form-item>
|
||||
<el-form-item size="large" label="Aws Session Token">
|
||||
<el-input v-model="config.aws_session_token" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-form-item size="large" :label="t('admin.settings.name')">
|
||||
<el-form-item size="large" :label="t('admin.settings.uploadlimit')">
|
||||
<span style="display: flex;height: 38px">
|
||||
<span style="margin-right: 0.4rem">{{ t('admin.settings.mei') }}</span>
|
||||
<el-input type="number" v-model="config.uploadMinute" />
|
||||
@@ -63,7 +98,7 @@
|
||||
<span style="width: 200px;margin-left: 0.4rem">{{ t('admin.settings.files') }}</span>
|
||||
</span>
|
||||
</el-form-item>
|
||||
<el-form-item size="large" :label="t('admin.settings.name')">
|
||||
<el-form-item size="large" :label="t('admin.settings.errorlimit')">
|
||||
<span style="display: flex;height: 38px">
|
||||
<span style="margin-right: 0.4rem">{{ t('admin.settings.mei') }}</span>
|
||||
<el-input type="number" v-model="config.errorMinute" />
|
||||
@@ -93,17 +128,25 @@ const config = ref({
|
||||
name: '',
|
||||
description: '',
|
||||
file_storage: '',
|
||||
expireStyle: [],
|
||||
admin_token: '',
|
||||
keywords: '',
|
||||
notify_title: '',
|
||||
notify_content: '',
|
||||
openUpload: 1,
|
||||
uploadSize: 1,
|
||||
uploadMinute: 1,
|
||||
max_save_seconds: 0,
|
||||
s3_access_key_id: '',
|
||||
background: '',
|
||||
page_explain: '',
|
||||
s3_secret_access_key: '',
|
||||
aws_session_token: '',
|
||||
s3_signature_version: '',
|
||||
s3_region_name: '',
|
||||
s3_bucket_name: '',
|
||||
s3_endpoint_url: '',
|
||||
s3_hostname: '',
|
||||
uploadCount: 1,
|
||||
errorMinute: 1,
|
||||
errorCount: 1,
|
||||
@@ -141,4 +184,8 @@ const submitSave = () => {
|
||||
font-size: 1rem;
|
||||
letter-spacing: 0.4rem;
|
||||
}
|
||||
small,.el-form-item__content{
|
||||
color: #909399;
|
||||
margin-left: 0.4rem;
|
||||
}
|
||||
</style>
|
||||
@@ -17,13 +17,13 @@ const input_status = reactive({
|
||||
'readonly': false,
|
||||
'loading': false,
|
||||
})
|
||||
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useConfigStore } from "@/stores/config";
|
||||
|
||||
const { config } = useConfigStore()
|
||||
const noDialog = ()=>{
|
||||
ElMessageBox.alert(t('send.alert'), t('send.mzsm'), {
|
||||
confirmButtonText: '确定',
|
||||
callback: () => {
|
||||
}
|
||||
ElMessageBox.alert(config.explain, t('send.disclaimers'), {
|
||||
confirmButtonText: t('fileBox.ok'),
|
||||
});
|
||||
}
|
||||
const { t } = useI18n()
|
||||
@@ -99,7 +99,7 @@ const url = atob('aHR0cHM6Ly9naXRodWIuY29tL3Zhc3RzYS9GaWxlQ29kZUJveA==');
|
||||
<a style="text-decoration: none;color: #606266" target="_blank" :href="url">
|
||||
{{ name}}
|
||||
</a>
|
||||
<a @click="noDialog" style="text-decoration: none;color: #606266;margin-left: 1rem" href="javascript:void(0)">{{t('send.mzsm')}}</a>
|
||||
<a @click="noDialog" style="text-decoration: none;color: #606266;margin-left: 1rem" href="javascript:void(0)">{{t('send.disclaimers')}}</a>
|
||||
</div>
|
||||
</main>
|
||||
</template>
|
||||
|
||||
@@ -3,8 +3,10 @@ import { ref } from 'vue'
|
||||
import CardTools from "@/components/CardTools.vue";
|
||||
import UploadFile from "@/components/UploadFile.vue";
|
||||
import UploadText from "@/components/UploadText.vue";
|
||||
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { useConfigStore } from "@/stores/config";
|
||||
|
||||
const { config } = useConfigStore();
|
||||
|
||||
const { t } = useI18n()
|
||||
const shareData = ref({
|
||||
@@ -16,9 +18,9 @@ const shareData = ref({
|
||||
|
||||
<template>
|
||||
<main>
|
||||
<el-card class="card" style="padding: 1rem;position: relative" :body-style="{ padding: '0px 0px 20px 0px' }">
|
||||
<card-tools/>
|
||||
<div style="display: flex;margin-top: 1rem">
|
||||
<el-card class="card" style="position: relative" :body-style="{ padding: '0' }">
|
||||
<card-tools style="padding: 1rem"/>
|
||||
<div style="display: flex;margin: 1rem">
|
||||
<div>
|
||||
<el-input
|
||||
v-model="shareData.expireValue"
|
||||
@@ -27,11 +29,7 @@ const shareData = ref({
|
||||
>
|
||||
<template #prepend>
|
||||
<el-select v-model="shareData.expireStyle" :placeholder="t('send.expireStyle')" style="width: 75px">
|
||||
<el-option :label="t('send.expireData.day')" value="day" />
|
||||
<el-option :label="t('send.expireData.hour')" value="hour" />
|
||||
<el-option :label="t('send.expireData.minute')" value="minute" />
|
||||
<el-option :label="t('send.expireData.forever')" value="forever" />
|
||||
<el-option :label="t('send.expireData.count')" value="count" />
|
||||
<el-option v-for="item in config.expireStyle" :key="item" :label="t(`send.expireData.${item}`)" :value="item" />
|
||||
</el-select>
|
||||
</template>
|
||||
<template #append>
|
||||
@@ -52,7 +50,7 @@ const shareData = ref({
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
<div style="margin-top: 1rem">
|
||||
<div style="margin: 1rem">
|
||||
<upload-file :shareData="shareData" v-if="shareData.targetType=='file'"/>
|
||||
<upload-text :shareData="shareData" v-else-if="shareData.targetType=='text'"/>
|
||||
</div>
|
||||
|
||||
@@ -3,17 +3,17 @@
|
||||
# @File : main.py
|
||||
# @Software: PyCharm
|
||||
import asyncio
|
||||
import os
|
||||
|
||||
from fastapi import FastAPI
|
||||
from starlette.middleware.cors import CORSMiddleware
|
||||
from starlette.responses import HTMLResponse
|
||||
from starlette.staticfiles import StaticFiles
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from fastapi.responses import HTMLResponse
|
||||
from tortoise.contrib.fastapi import register_tortoise
|
||||
|
||||
from apps.base.models import KeyValue
|
||||
from apps.base.views import share_api
|
||||
from apps.admin.views import admin_api
|
||||
from core.settings import data_root, settings
|
||||
from core.response import APIResponse
|
||||
from core.settings import data_root, settings, BASE_DIR, DEFAULT_CONFIG
|
||||
from core.tasks import delete_expire_files
|
||||
|
||||
app = FastAPI()
|
||||
@@ -26,8 +26,6 @@ app.add_middleware(
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
app.mount('/assets', StaticFiles(directory='./fcb-fronted/dist/assets'), name="assets")
|
||||
|
||||
register_tortoise(
|
||||
app,
|
||||
generate_schemas=True,
|
||||
@@ -55,20 +53,35 @@ app.include_router(admin_api)
|
||||
async def startup_event():
|
||||
# 启动后台任务,不定时删除过期文件
|
||||
asyncio.create_task(delete_expire_files())
|
||||
# 读取用户配置
|
||||
user_config, created = await KeyValue.get_or_create(key='settings', defaults={'value': DEFAULT_CONFIG})
|
||||
settings.user_config = user_config.value
|
||||
|
||||
|
||||
@app.get('/')
|
||||
async def index():
|
||||
return HTMLResponse(
|
||||
content=open('./fcb-fronted/dist/index.html', 'r', encoding='utf-8').read()
|
||||
.replace('{{title}}', settings.name)
|
||||
.replace('{{description}}', settings.description)
|
||||
.replace('{{keywords}}', settings.keywords)
|
||||
.replace('{{opacity}}', settings.opacity)
|
||||
.replace('{{background}}', settings.background)
|
||||
content=open(BASE_DIR / 'fcb-fronted/dist/index.html', 'r', encoding='utf-8').read()
|
||||
.replace('{{title}}', str(settings.name))
|
||||
.replace('{{description}}', str(settings.description))
|
||||
.replace('{{keywords}}', str(settings.keywords))
|
||||
.replace('{{opacity}}', str(settings.opacity))
|
||||
.replace('{{background}}', str(settings.background))
|
||||
, media_type='text/html', headers={'Cache-Control': 'no-cache'})
|
||||
|
||||
|
||||
@app.post('/')
|
||||
async def get_config():
|
||||
return APIResponse(detail={
|
||||
'explain': settings.page_explain,
|
||||
'uploadSize': settings.uploadSize,
|
||||
'expireStyle': settings.expireStyle,
|
||||
'openUpload': settings.openUpload,
|
||||
'notify_title': settings.notify_title,
|
||||
'notify_content': settings.notify_content,
|
||||
})
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import uvicorn
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<h1>文件快递柜-轻量</h1>
|
||||
<h2>FileCodeBox-Lite</h2>
|
||||
<p><em>匿名口令分享文本,文件,像拿快递一样取文件</em></p>
|
||||
<p>交流Q群:739673698,欢迎各位集思广益,项目构思重构中</p>
|
||||
<p>交流Q群:739673698</p>
|
||||
</div>
|
||||
|
||||

|
||||
@@ -29,9 +29,17 @@
|
||||
|
||||
## 部署方式
|
||||
|
||||
### 1Panel一键部署
|
||||
|
||||
应用商店->实用工具->FileCodeBox
|
||||

|
||||
更新:容器->选择->更多->编辑->强制拉取镜像->确认
|
||||
### 宝塔应用商店一键部署
|
||||
貌似是1.6版本的
|
||||

|
||||
### Docker一键部署
|
||||
|
||||
#### 2.0版本,开发中
|
||||
#### 2.0版本,完善中
|
||||
|
||||
默认信息
|
||||
|
||||
@@ -66,10 +74,6 @@ docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --n
|
||||
docker run -d --restart=always -p 12345:12345 -v /opt/FileCodeBox/:/app/data --name filecodebox lanol/filecodebox:arm
|
||||
```
|
||||
|
||||
### 宝塔部署
|
||||
|
||||
https://www.yuque.com/lxyo/work/lc1oe0xqk8t9b976
|
||||
|
||||
### 更新方式
|
||||
|
||||
```bash
|
||||
@@ -92,82 +96,37 @@ docker logs filecodebox
|
||||
|
||||
```
|
||||
|
||||
### 其他方式
|
||||
|
||||
仅供参考,历史版本->[部署文档](https://www.yuque.com/lxyo/work/zd0kvzy7fofx6w7v)
|
||||
|
||||
## 预览
|
||||
|
||||
### 例站
|
||||
|
||||
[https://share.lanol.cn](https://share.lanol.cn)
|
||||
|
||||
### 暗黑模式
|
||||
### 截图
|
||||
|
||||
<table style="width:100%">
|
||||
|
||||
<tr style="width: 100%">
|
||||
<td style="width: 50%">
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_10.png" alt="寄文件">
|
||||
|
||||
<img src="./.github/images/img.png" alt="寄文件">
|
||||
</td>
|
||||
<td style="width: 50%">
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_11.png" alt="寄文件">
|
||||
|
||||
<img src="./.github/images/img_1.png" alt="寄文件">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
### 寄件
|
||||
|
||||
<table style="width: 100%">
|
||||
<tr style="width: 100%">
|
||||
<td style="width: 50%">
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_1.png" alt="寄文件">
|
||||
<img src="./.github/images/img_2.png" alt="寄文件">
|
||||
</td>
|
||||
<td style="width: 50%">
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_2.png" alt="寄文本">
|
||||
<img src="./.github/images/img_3.png" alt="寄文件">
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="width: 100%;">
|
||||
<td colspan="2" style="width: 100%;">
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_3.png" alt="寄文本">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
### 取件
|
||||
|
||||
<table style="width: 100%">
|
||||
<tr style="width: 100%">
|
||||
<td style="width: 50%">
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_6.png" alt="取件">
|
||||
<img src="./.github/images/img_4.png" alt="寄文件">
|
||||
</td>
|
||||
<td style="width: 50%">
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_5.png" alt="取件码错误">
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="width: 100%;">
|
||||
<td colspan="2" style="width: 100%;">
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_4.png" alt="取文件">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
### 管理
|
||||
|
||||
<table style="width: 100%">
|
||||
<tr style="width: 100%">
|
||||
<td style="width: 50%">
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_7.png" alt="admin">
|
||||
</td>
|
||||
<td style="width: 50%">
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_12.png" alt="admin">
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="width: 100%;">
|
||||
<td colspan="2" style="width: 100%;">
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_13.png" alt="admin">
|
||||
<img src="./.github/images/img_5.png" alt="寄文件">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -231,21 +190,6 @@ BUCKET_NAME=阿里云OSS Bucket的BucketName
|
||||
|
||||
[](https://star-history.com/#vastsa/FileCodeBox&Date)
|
||||
|
||||
## 赞赏
|
||||
|
||||
<table style="width: 100%">
|
||||
<tr style="width: 100%">
|
||||
<td style="width: 50%;text-align: center;">
|
||||
支付宝
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_9.png" alt="支付宝">
|
||||
</td>
|
||||
<td style="width: 50%;text-align: center">
|
||||
微信
|
||||
<img src="https://fastly.jsdelivr.net/gh/vastsa/FileCodeBox@V1.6/images/img_8.png" alt="微信">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
## 常见问题
|
||||
|
||||
1. 413 Request Entity Too Large
|
||||
|
||||
@@ -37,3 +37,4 @@ urllib3==1.26.16
|
||||
uvicorn==0.23.2
|
||||
wrapt==1.15.0
|
||||
yarl==1.9.2
|
||||
Office365-REST-Python-Client==2.5.2
|
||||