• R/O
  • HTTP
  • SSH
  • HTTPS

luci: Commit

LuCI - OpenWrt Configuration Interface


Commit MetaInfo

Révision787d4e2ca49b5e597f37c40953657ceb3ae40861 (tree)
l'heure2022-05-11 19:40:23
AuteurTianling Shen <cnsztl@immo...>
CommiterTianling Shen

Message de Log

OpenClash: bump to 0.45.16

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>

Change Summary

Modification

--- a/applications/luci-app-openclash/Makefile
+++ b/applications/luci-app-openclash/Makefile
@@ -1,7 +1,7 @@
11 include $(TOPDIR)/rules.mk
22
33 PKG_NAME:=luci-app-openclash
4-PKG_VERSION:=0.45.12
4+PKG_VERSION:=0.45.16
55 PKG_RELEASE:=beta
66 PKG_MAINTAINER:=vernesong <https://github.com/vernesong/OpenClash>
77
--- a/applications/luci-app-openclash/luasrc/controller/openclash.lua
+++ b/applications/luci-app-openclash/luasrc/controller/openclash.lua
@@ -26,6 +26,7 @@ function index()
2626 entry({"admin", "services", "openclash", "lastversion"},call("action_lastversion"))
2727 entry({"admin", "services", "openclash", "save_corever_branch"},call("action_save_corever_branch"))
2828 entry({"admin", "services", "openclash", "update"},call("action_update"))
29+ entry({"admin", "services", "openclash", "update_info"},call("action_update_info"))
2930 entry({"admin", "services", "openclash", "update_ma"},call("action_update_ma"))
3031 entry({"admin", "services", "openclash", "opupdate"},call("action_opupdate"))
3132 entry({"admin", "services", "openclash", "coreupdate"},call("action_coreupdate"))
@@ -89,6 +90,10 @@ local fs = require "luci.openclash"
8990 local json = require "luci.jsonc"
9091 local uci = require("luci.model.uci").cursor()
9192 local datatype = require "luci.cbi.datatypes"
93+local opkg
94+if pcall(require, "luci.model.ipkg") then
95+ opkg = require "luci.model.ipkg"
96+end
9297
9398 local core_path_mode = uci:get("openclash", "config", "small_flash_memory")
9499 if core_path_mode ~= "1" then
@@ -193,42 +198,45 @@ local function startlog()
193198 line_trans = info
194199 if string.len(info) > 0 then
195200 if not string.find (info, "【") and not string.find (info, "】") then
196- line_trans = luci.i18n.translate(string.sub(info, 0, -1))
197- else
198- line_trans = trans_line(info)
201+ line_trans = luci.i18n.translate(string.sub(info, 0, -1))
202+ else
203+ line_trans = trans_line(info)
204+ end
199205 end
200- end
201206 end
202207 return line_trans
203208 end
204209
205210 local function coremodel()
206- local coremodel = luci.sys.exec("opkg status libc 2>/dev/null |grep 'Architecture' |awk -F ': ' '{print $2}' 2>/dev/null")
207- return coremodel
211+ if opkg and opkg.info("libc") and opkg.info("libc")["libc"] then
212+ return opkg.info("libc")["libc"]["Architecture"]
213+ else
214+ return luci.sys.exec("opkg status libc 2>/dev/null |grep 'Architecture' |awk -F ': ' '{print $2}' 2>/dev/null")
215+ end
208216 end
209217
210218 local function corecv()
211-if not nixio.fs.access(dev_core_path) then
212- return "0"
213-else
214- return luci.sys.exec(string.format("%s -v 2>/dev/null |awk -F ' ' '{print $2}'",dev_core_path))
215-end
219+ if not nixio.fs.access(dev_core_path) then
220+ return "0"
221+ else
222+ return luci.sys.exec(string.format("%s -v 2>/dev/null |awk -F ' ' '{print $2}'",dev_core_path))
223+ end
216224 end
217225
218226 local function coretuncv()
219-if not nixio.fs.access(tun_core_path) then
220- return "0"
221-else
222- return luci.sys.exec(string.format("%s -v 2>/dev/null |awk -F ' ' '{print $2}'",tun_core_path))
223-end
227+ if not nixio.fs.access(tun_core_path) then
228+ return "0"
229+ else
230+ return luci.sys.exec(string.format("%s -v 2>/dev/null |awk -F ' ' '{print $2}'",tun_core_path))
231+ end
224232 end
225233
226234 local function coremetacv()
227-if not nixio.fs.access(meta_core_path) then
228- return "0"
229-else
230- return luci.sys.exec(string.format("%s -v 2>/dev/null |awk -F ' ' '{print $3}'",meta_core_path))
231-end
235+ if not nixio.fs.access(meta_core_path) then
236+ return "0"
237+ else
238+ return luci.sys.exec(string.format("%s -v 2>/dev/null |awk -F ' ' '{print $3}'",meta_core_path))
239+ end
232240 end
233241
234242 local function corelv()
@@ -240,18 +248,22 @@ local function corelv()
240248 end
241249
242250 local function opcv()
243- return luci.sys.exec("opkg status luci-app-openclash 2>/dev/null |grep 'Version' |awk -F 'Version: ' '{print \"v\"$2}'")
251+ if opkg and opkg.info("luci-app-openclash") and opkg.info("luci-app-openclash")["luci-app-openclash"] then
252+ return "v" .. opkg.info("luci-app-openclash")["luci-app-openclash"]["Version"]
253+ else
254+ return luci.sys.exec("opkg status luci-app-openclash 2>/dev/null |grep 'Version' |awk -F 'Version: ' '{print \"v\"$2}'")
255+ end
244256 end
245257
246258 local function oplv()
247- local new = luci.sys.call(string.format("sh /usr/share/openclash/openclash_version.sh"))
248- local oplv = luci.sys.exec("sed -n 1p /tmp/openclash_last_version 2>/dev/null")
249- return oplv .. "," .. new
259+ local new = luci.sys.call(string.format("sh /usr/share/openclash/openclash_version.sh"))
260+ local oplv = luci.sys.exec("sed -n 1p /tmp/openclash_last_version 2>/dev/null")
261+ return oplv .. "," .. new
250262 end
251263
252264 local function opup()
253- luci.sys.call("rm -rf /tmp/*_last_version 2>/dev/null && sh /usr/share/openclash/openclash_version.sh >/dev/null 2>&1")
254- return luci.sys.call("sh /usr/share/openclash/openclash_update.sh >/dev/null 2>&1 &")
265+ luci.sys.call("rm -rf /tmp/*_last_version 2>/dev/null && sh /usr/share/openclash/openclash_version.sh >/dev/null 2>&1")
266+ return luci.sys.call("sh /usr/share/openclash/openclash_update.sh >/dev/null 2>&1 &")
255267 end
256268
257269 local function coreup()
@@ -282,18 +294,18 @@ local function save_corever_branch()
282294 end
283295
284296 local function upchecktime()
285- local corecheck = os.date("%Y-%m-%d %H:%M:%S",fs.mtime("/tmp/clash_last_version"))
286- local opcheck
287- if not corecheck or corecheck == "" then
288- opcheck = os.date("%Y-%m-%d %H:%M:%S",fs.mtime("/tmp/openclash_last_version"))
289- if not opcheck or opcheck == "" then
290- return "1"
291- else
292- return opcheck
293- end
294- else
295- return corecheck
296- end
297+ local corecheck = os.date("%Y-%m-%d %H:%M:%S",fs.mtime("/tmp/clash_last_version"))
298+ local opcheck
299+ if not corecheck or corecheck == "" then
300+ opcheck = os.date("%Y-%m-%d %H:%M:%S",fs.mtime("/tmp/openclash_last_version"))
301+ if not opcheck or opcheck == "" then
302+ return "1"
303+ else
304+ return opcheck
305+ end
306+ else
307+ return corecheck
308+ end
297309 end
298310
299311 local function historychecktime()
@@ -310,18 +322,18 @@ end
310322
311323 function download_rule()
312324 local filename = luci.http.formvalue("filename")
313- local state = luci.sys.call(string.format('/usr/share/openclash/openclash_download_rule_list.sh "%s" >/dev/null 2>&1',filename))
314- return state
325+ local state = luci.sys.call(string.format('/usr/share/openclash/openclash_download_rule_list.sh "%s" >/dev/null 2>&1',filename))
326+ return state
315327 end
316328
317329 function download_disney_domains()
318- local state = luci.sys.call(string.format('/usr/share/openclash/openclash_download_rule_list.sh "%s" >/dev/null 2>&1',"disney_domains"))
319- return state
330+ local state = luci.sys.call(string.format('/usr/share/openclash/openclash_download_rule_list.sh "%s" >/dev/null 2>&1',"disney_domains"))
331+ return state
320332 end
321333
322334 function download_netflix_domains()
323- local state = luci.sys.call(string.format('/usr/share/openclash/openclash_download_rule_list.sh "%s" >/dev/null 2>&1',"netflix_domains"))
324- return state
335+ local state = luci.sys.call(string.format('/usr/share/openclash/openclash_download_rule_list.sh "%s" >/dev/null 2>&1',"netflix_domains"))
336+ return state
325337 end
326338
327339 function action_flush_fakeip_cache()
@@ -936,19 +948,25 @@ end
936948 function action_update()
937949 luci.http.prepare_content("application/json")
938950 luci.http.write_json({
939- coremodel = coremodel(),
940951 corecv = corecv(),
941952 coretuncv = coretuncv(),
942953 coremetacv = coremetacv(),
954+ coremodel = coremodel(),
943955 opcv = opcv(),
944- corever = corever(),
945- release_branch = release_branch(),
946956 upchecktime = upchecktime(),
947957 corelv = corelv(),
948958 oplv = oplv();
949959 })
950960 end
951961
962+function action_update_info()
963+ luci.http.prepare_content("application/json")
964+ luci.http.write_json({
965+ corever = corever(),
966+ release_branch = release_branch();
967+ })
968+end
969+
952970 function action_update_ma()
953971 luci.http.prepare_content("application/json")
954972 luci.http.write_json({
--- a/applications/luci-app-openclash/luasrc/view/openclash/status.htm
+++ b/applications/luci-app-openclash/luasrc/view/openclash/status.htm
@@ -29,6 +29,7 @@
2929 <%
3030 local uci = require("luci.model.uci").cursor()
3131 local RELEASE_BRANCH = uci:get("openclash", "config", "release_branch")
32+ local random = tostring(os.time()):reverse():sub(1, 9)
3233 %>
3334 <fieldset class="cbi-section">
3435 <table width="100%">
@@ -38,30 +39,30 @@
3839 <%
3940 if uci:get("openclash", "config", "enable_meta_core") ~= '1' then
4041 %>
41- <img id="logo" src="https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/o/op/openclash/<%=RELEASE_BRANCH%>/img/logo.png" loading="lazy" onerror="return imgerrorfuns(this,'/luci-static/resources/openclash/img/logo.png')" title="Hello, World!" alt="OpenClash" onclick="return homepage()" />
42+ <img id="logo" src="https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/o/op/openclash/<%=RELEASE_BRANCH%>/img/logo.png" loading="lazy" onerror="return imgerrorfuns(this,'/luci-static/resources/openclash/img/logo.png?<%=random%>')" title="Hello, World!" alt="OpenClash" onclick="return homepage()" />
4243 <%
4344 else
4445 %>
45- <img id="logo" src="https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/o/op/openclash/<%=RELEASE_BRANCH%>/img/meta.png" loading="lazy" onerror="return imgerrorfuns(this,'/luci-static/resources/openclash/img/meta.png')" title="Hello, World!" alt="OpenClash" onclick="return homepage()" />
46+ <img id="logo" src="https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/o/op/openclash/<%=RELEASE_BRANCH%>/img/meta.png" loading="lazy" onerror="return imgerrorfuns(this,'/luci-static/resources/openclash/img/meta.png?<%=random%>')" title="Hello, World!" alt="OpenClash" onclick="return homepage()" />
4647 <%
4748 end
4849 %>
4950 </p>
5051 <p id="_clashversion" style="margin: 10px 0; text-align: center">
51- <img src="/luci-static/resources/openclash/img/version.svg" onerror="return imgerrorfuns(this,'https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/o/op/openclash/<%=RELEASE_BRANCH%>/img/version.png')" alt="currentversion" height="21px" onclick="return go_update()">
52+ <img src="/luci-static/resources/openclash/img/version.svg?<%=random%>" onerror="return imgerrorfuns(this,'https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/o/op/openclash/<%=RELEASE_BRANCH%>/img/version.png')" alt="currentversion" height="21px" onclick="return go_update()">
5253 </p>
5354 </td></tr>
5455 <tr><td colspan="4" width="100%">
5556 <p style="margin: 10px 0; text-align: center">
56- <img id="gitbook" src="/luci-static/resources/openclash/img/Wiki.svg" loading="lazy" alt="GitBook" width="50px" height="20px" onerror="return imgerrorfuns(this,'https://img.shields.io/badge/Wiki--lightgrey?logo=GitBook&style=social')" onclick="return gitbookpage()" />
57+ <img id="gitbook" src="/luci-static/resources/openclash/img/Wiki.svg?<%=random%>" loading="lazy" alt="GitBook" width="50px" height="20px" onerror="return imgerrorfuns(this,'https://img.shields.io/badge/Wiki--lightgrey?logo=GitBook&style=social')" onclick="return gitbookpage()" />
5758 &nbsp;&nbsp;&nbsp;
58- <img id="wiki" src="/luci-static/resources/openclash/img/Tutorials.svg" loading="lazy" alt="Wiki" width="75px" height="20px" onerror="return imgerrorfuns(this,'https://img.shields.io/badge/Tutorials--lightgrey?logo=Wikipedia&style=social')" onclick="return wikipage()" />
59+ <img id="wiki" src="/luci-static/resources/openclash/img/Tutorials.svg?<%=random%>" loading="lazy" alt="Wiki" width="75px" height="20px" onerror="return imgerrorfuns(this,'https://img.shields.io/badge/Tutorials--lightgrey?logo=Wikipedia&style=social')" onclick="return wikipage()" />
5960 &nbsp;&nbsp;&nbsp;
60- <img id="star" src="/luci-static/resources/openclash/img/Star.svg" loading="lazy" alt="star" width="50px" height="20px" onerror="return imgerrorfuns(this,'https://img.shields.io/badge/Star--lightgrey?logo=github&style=social')" onclick="return homepage()" />
61+ <img id="star" src="/luci-static/resources/openclash/img/Star.svg?<%=random%>g" loading="lazy" alt="star" width="50px" height="20px" onerror="return imgerrorfuns(this,'https://img.shields.io/badge/Star--lightgrey?logo=github&style=social')" onclick="return homepage()" />
6162 &nbsp;&nbsp;&nbsp;
62- <img id="telegram" src="/luci-static/resources/openclash/img/Telegram.svg" loading="lazy" alt="Telegram" onerror="return imgerrorfuns(this,'https://img.shields.io/badge/Telegram--lightgrey?logo=Telegram&style=social')" onclick="return telegrampage()" />
63+ <img id="telegram" src="/luci-static/resources/openclash/img/Telegram.svg?<%=random%>" loading="lazy" alt="Telegram" onerror="return imgerrorfuns(this,'https://img.shields.io/badge/Telegram--lightgrey?logo=Telegram&style=social')" onclick="return telegrampage()" />
6364 &nbsp;&nbsp;&nbsp;
64- <img id="sponsor" src="/luci-static/resources/openclash/img/Sponsor.svg" loading="lazy" alt="Sponsor" width="73px" height="20px" onerror="return imgerrorfuns(this,'https://img.shields.io/badge/Sponsor--lightgrey?logo=ko-fi&style=social')" onclick="return sponsorpage()" />
65+ <img id="sponsor" src="/luci-static/resources/openclash/img/Sponsor.svg?<%=random%>" loading="lazy" alt="Sponsor" width="73px" height="20px" onerror="return imgerrorfuns(this,'https://img.shields.io/badge/Sponsor--lightgrey?logo=ko-fi&style=social')" onclick="return sponsorpage()" />
6566 </p>
6667 </td></tr>
6768 <tr><td width="100%" colspan="4">
@@ -877,7 +878,7 @@
877878
878879 function clashversion_error()
879880 {
880- clashversion.innerHTML = '<img id="clashversion" src="/luci-static/resources/openclash/img/version.svg" alt="currentversion" height="21px" onerror="return imgerrorfuns(this,\'https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/o/op/openclash/<%=RELEASE_BRANCH%>/img/version.png\')" onclick="return go_update()">';
881+ clashversion.innerHTML = '<img id="clashversion" src="/luci-static/resources/openclash/img/version.svg?<%=random%>" alt="currentversion" height="21px" onerror="return imgerrorfuns(this,\'https://mirrors.tuna.tsinghua.edu.cn/osdn/storage/g/o/op/openclash/<%=RELEASE_BRANCH%>/img/version.png\')" onclick="return go_update()">';
881882 };
882883
883884 function imgerrorfuns(imgobj,imgSrc){
--- a/applications/luci-app-openclash/luasrc/view/openclash/update.htm
+++ b/applications/luci-app-openclash/luasrc/view/openclash/update.htm
@@ -95,8 +95,8 @@
9595 </fieldset>
9696
9797 <script type="text/javascript">//<![CDATA[
98- var core_version = document.getElementById('CORE_VERSION');
99- var checktime = document.getElementById('CHECKTIME');
98+ var core_version = document.getElementById('CORE_VERSION');
99+ var checktime = document.getElementById('CHECKTIME');
100100 var cpu_model = document.getElementById('CPU_MODEL');
101101 var core_cv = document.getElementById('CORE_CV');
102102 var core_lv = document.getElementById('CORE_LV');
@@ -120,8 +120,20 @@
120120 var one_key_update = document.getElementById('one_key_update');
121121 var remove_core = document.getElementById('remove_core');
122122 var release_branch = document.getElementById('RELEASE_BRANCH');
123+ core_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Check And Update%>" onclick="return core_update(this,\'Dev\')"/>';
124+ core_tun_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Check And Update%>" onclick="return core_update(this,\'TUN\')"/>';
125+ core_meta_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Check And Update%>" onclick="return core_update(this,\'Meta\')"/>';
126+ op_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Check And Update%>" onclick="return op_update(this)"/>';
127+ ma_core_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Download%>" onclick="return ma_core_update(this,\'Dev\')"/>';
128+ ma_core_tun_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Download%>" onclick="return ma_core_update(this,\'TUN\')"/>';
129+ ma_core_meta_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Download%>" onclick="return ma_core_update(this,\'Meta\')"/>';
130+ ma_op_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Download%>" onclick="return ma_op_update(this)"/>';
131+ restore.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reset" value="<%:Restore Default Config%>" onclick="return restore_config(this)"/>';
132+ one_key_update.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reset" value="<%:One Click Check Update%>" onclick="return all_one_key_update(this)"/>';
133+ remove_core.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reset" value="<%:Remove Core%>" onclick="return remove_all_core(this)"/>';
134+ backup.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reset" value="<%:Backup OpenClash%>" onclick="return backup_all_file(this)"/>';
123135
124- XHR.get('<%=luci.dispatcher.build_url("admin", "services", "openclash", "update")%>', null, function(x, status) {
136+ XHR.get('<%=luci.dispatcher.build_url("admin", "services", "openclash", "update_info")%>', null, function(x, status) {
125137 if ( x && x.status == 200 ) {
126138 if ( status.corever != "0" && status.corever != "" ) {
127139 core_version.value = status.corever;
@@ -179,42 +191,42 @@
179191 var corelvis = arr_core[0];
180192 var coretunlvis = arr_core[1];
181193 var coremetalvis = arr_core[2];
182- if (corelvis != status.corecv && corelvis != "") {
194+ if (corelvis != status.corecv && corelvis != "" && corelvis != "\n") {
183195 core_lv.innerHTML = "<b style=color:green>"+corelvis+"<%:<New>%></b>";
184196 }
185- else if (corelvis != "" && corelvis == status.corecv) {
197+ else if (corelvis != "" && corelvis == status.corecv && corelvis != "\n") {
186198 core_lv.innerHTML = "<b style=color:green>"+corelvis+"</b>";
187199 }
188200 else {
189201 core_lv.innerHTML = "<b style=color:red><%:Unknown%></b>";
190202 }
191- if (coretunlvis != status.coretuncv && coretunlvis != "") {
203+ if (coretunlvis != status.coretuncv && coretunlvis != "" && coretunlvis != "\n") {
192204 core_tun_lv.innerHTML = "<b style=color:green>"+coretunlvis+"<%:<New>%></b>";
193205 }
194- else if (coretunlvis != "" && coretunlvis == status.coretuncv) {
206+ else if (coretunlvis != "" && coretunlvis == status.coretuncv && coretunlvis != "\n") {
195207 core_tun_lv.innerHTML = "<b style=color:green>"+coretunlvis+"</b>";
196208 }
197209 else {
198210 core_tun_lv.innerHTML = "<b style=color:red><%:Unknown%></b>";
199211 }
200- if (coremetalvis != status.coremetacv && coremetalvis != "") {
212+ if (coremetalvis != status.coremetacv && coremetalvis != "" && coremetalvis != "\n") {
201213 core_meta_lv.innerHTML = "<b style=color:green>"+coremetalvis+"<%:<New>%></b>";
202214 }
203- else if (coremetalvis != "" && coremetalvis == status.coremetacv) {
215+ else if (coremetalvis != "" && coremetalvis == status.coremetacv && coremetalvis != "\n") {
204216 core_meta_lv.innerHTML = "<b style=color:green>"+coremetalvis+"</b>";
205217 }
206218 else {
207- core_meta_lv.innerHTML = "<b style=color:=red><%:Unknown%></b>";
219+ core_meta_lv.innerHTML = "<b style=color:red><%:Unknown%></b>";
208220 }
209221 var oplv = status.oplv;
210222 var arr_op = oplv.split(",");
211223 var oplvis = arr_op[0];
212224 var new_op = arr_op[1];
213225 op_cv.innerHTML = status.opcv ? "<b style=color:green>"+status.opcv+"</b>" : "<b style=color:red><%:Unknown%></b>";
214- if ( new_op == "2" && oplvis != "") {
226+ if ( new_op == "2" && oplvis != "" && oplvis != "\n") {
215227 op_lv.innerHTML = "<b style=color:green>"+oplvis+"<%:<New>%></b>";
216228 }
217- else if (oplvis != "") {
229+ else if (oplvis != "" && oplvis != "\n") {
218230 op_lv.innerHTML = "<b style=color:green>"+oplvis+"</b>";
219231 }
220232 else {
@@ -222,19 +234,34 @@
222234 }
223235 }
224236 });
225-
226- core_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Check And Update%>" onclick="return core_update(this,\'Dev\')"/>';
227- core_tun_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Check And Update%>" onclick="return core_update(this,\'TUN\')"/>';
228- core_meta_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Check And Update%>" onclick="return core_update(this,\'Meta\')"/>';
229- op_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Check And Update%>" onclick="return op_update(this)"/>';
230- ma_core_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Download%>" onclick="return ma_core_update(this,\'Dev\')"/>';
231- ma_core_tun_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Download%>" onclick="return ma_core_update(this,\'TUN\')"/>';
232- ma_core_meta_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Download%>" onclick="return ma_core_update(this,\'Meta\')"/>';
233- ma_op_up.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reload" value="<%:Download%>" onclick="return ma_op_update(this)"/>';
234- restore.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reset" value="<%:Restore Default Config%>" onclick="return restore_config(this)"/>';
235- one_key_update.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reset" value="<%:One Click Check Update%>" onclick="return all_one_key_update(this)"/>';
236- remove_core.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reset" value="<%:Remove Core%>" onclick="return remove_all_core(this)"/>';
237- backup.innerHTML = '<input type="button" class="btn cbi-button cbi-button-reset" value="<%:Backup OpenClash%>" onclick="return backup_all_file(this)"/>';
237+
238+ XHR.poll(7, '<%=luci.dispatcher.build_url("admin", "services", "openclash", "startlog")%>', status.startlog, function(x, status) {
239+ if ( x && x.status == 200 ) {
240+ if ( status.startlog == "\n" || status.startlog == "" ) {
241+ var rdmdl=Math.floor(Math.random()*2)+1;
242+ if(rdmdl==1)
243+ {
244+ update_tip.innerHTML = '<b><font><%:Note: if the update fails, you can manually download and upload%></font></b>';
245+ }
246+ if(rdmdl==2)
247+ {
248+ update_tip.innerHTML = '<b><font><%:Note: the client may not support update, because the firmware with squashfs format will not release flash space after updating%></font></b>';
249+ }
250+ }
251+ }
252+ });
253+
254+ XHR.poll(1, '<%=luci.dispatcher.build_url("admin", "services", "openclash", "startlog")%>', null, function(x, status) {
255+ if ( x && x.status == 200 ) {
256+ if ( status.startlog.match("level=fatal") ) {
257+ XHR.get('<%=luci.dispatcher.build_url("admin", "services", "openclash", "del_start_log")%>', null, function(x) {});
258+ alert('<%:OpenClash Start Failed%> :\n\n' + status.startlog.split('msg=')[1]);
259+ }
260+ else if ( status.startlog != "\n" && status.startlog != "" ) {
261+ update_tip.innerHTML = '<b style=color:green>'+status.startlog+'</b>';
262+ };
263+ };
264+ });
238265
239266 function core_update(btn,type)
240267 {
@@ -416,29 +443,5 @@
416443 }
417444 });
418445 }
419-
420- XHR.poll(7, '<%=luci.dispatcher.build_url("admin", "services", "openclash", "startlog")%>', status.startlog, function(x, status) {
421- if ( x && x.status == 200 ) {
422- if ( status.startlog == "\n" || status.startlog == "" ) {
423- var rdmdl=Math.floor(Math.random()*2)+1;
424- if(rdmdl==1)
425- {
426- update_tip.innerHTML = '<b><font><%:Note: if the update fails, you can manually download and upload%></font></b>';
427- }
428- if(rdmdl==2)
429- {
430- update_tip.innerHTML = '<b><font><%:Note: the client may not support update, because the firmware with squashfs format will not release flash space after updating%></font></b>';
431- }
432- }
433- }
434- });
435-
436- XHR.poll(2, '<%=luci.dispatcher.build_url("admin", "services", "openclash", "startlog")%>', status.startlog, function(x, status) {
437- if ( x && x.status == 200 ) {
438- if ( status.startlog != "\n" && status.startlog != "" ) {
439- update_tip.innerHTML = '<b style=color:green>'+status.startlog+'</b>';
440- }
441- }
442- });
443446
444447 //]]></script>
--- a/applications/luci-app-openclash/root/etc/init.d/openclash
+++ b/applications/luci-app-openclash/root/etc/init.d/openclash
@@ -1273,10 +1273,6 @@ if [ -n "$en_mode_tun" ]; then
12731273 TUN_WAIT=0
12741274 ip link set utun up
12751275
1276- if [ "$enable_meta_core" == "1" ]; then
1277- route add -net 198.18.0.0/16 dev utun
1278- fi
1279-
12801276 while ( [ -n "$(pidof clash)" ] && [ -z "$(ip route list |grep utun)" ] && [ "$TUN_WAIT" -le 3 ] )
12811277 do
12821278 ip link set utun up
@@ -1360,7 +1356,7 @@ fi
13601356
13611357 #ipv6
13621358 if [ "$ipv6_enable" -eq 1 ] && [ -n "$(ip6tables -t mangle -L 2>&1 | grep -o 'Chain')" ]; then
1363- if [ "$enable_redirect_dns" -eq 1 ] && [ -z "$(ip6tables -t nat -nL PREROUTING --line-number |grep 'dns_hijack')"]; then
1359+ if [ "$enable_redirect_dns" -eq 1 ] && [ -z "$(ip6tables -t nat -nL PREROUTING --line-number |grep 'DNS Hijack')"]; then
13641360 ip6tables -t nat -I PREROUTING -p udp --dport 53 -j REDIRECT --to-ports "$DNSPORT" -m comment --comment "OpenClash DNS Hijack"
13651361 ip6tables -t nat -I PREROUTING -p tcp --dport 53 -j REDIRECT --to-ports "$DNSPORT" -m comment --comment "OpenClash DNS Hijack"
13661362 fi
--- a/applications/luci-app-openclash/root/etc/openclash/custom/openclash_sniffing_domain_filter.yaml
+++ b/applications/luci-app-openclash/root/etc/openclash/custom/openclash_sniffing_domain_filter.yaml
@@ -1,4 +1,4 @@
1-skip-sni:
1+skip-domain:
22 - '+.apple.com'
33 - Mijia Cloud
44 - '+.jd.com'
\ No newline at end of file
--- a/applications/luci-app-openclash/root/etc/openclash/custom/openclash_sniffing_port_filter.yaml
+++ b/applications/luci-app-openclash/root/etc/openclash/custom/openclash_sniffing_port_filter.yaml
@@ -1,3 +1,4 @@
11 port-whitelist:
22 - 443
3+ - 80
34 # - 8080-9090
\ No newline at end of file
--- /dev/null
+++ b/applications/luci-app-openclash/root/usr/share/openclash/dashboard/assets/index.44e2a61b.js
@@ -0,0 +1 @@
1+var nt=Object.defineProperty,st=Object.defineProperties;var ot=Object.getOwnPropertyDescriptors;var Le=Object.getOwnPropertySymbols;var at=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable;var Re=(n,t,s)=>t in n?nt(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,N=(n,t)=>{for(var s in t||(t={}))at.call(t,s)&&Re(n,s,t[s]);if(Le)for(var s of Le(t))lt.call(t,s)&&Re(n,s,t[s]);return n},I=(n,t)=>st(n,ot(t));import{R as e,c as g,f as rt,r as m,a as se,E as Me,b as ct,d as Y,e as we,u as Ee,g as Ce,h as _,i as ze,j as be,k as Q,l as He,m as it,n as he,o as ut,p as Ne,q as mt,s as Pe,t as dt,v as pt,w as ft,x as Et,y as ht,z as yt,A as xt,B as gt,C as vt,D as wt,F as Ct,G as bt,H as Nt,N as Pt,O as St,I as kt,J as pe,K as Dt,L as Ft,M as At}from"./vendor.91f359a7.js";const $t=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&o(r)}).observe(document,{childList:!0,subtree:!0});function s(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerpolicy&&(l.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?l.credentials="include":a.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(a){if(a.ep)return;a.ep=!0;const l=s(a);fetch(a.href,l)}};$t();function te(){return navigator.userAgent==="ClashX Runtime"}let P=null;class Lt{constructor(t){this.instance=null,window.WebViewJavascriptBridge!=null&&(this.instance=window.WebViewJavascriptBridge),this.initBridge(s=>{this.instance=s,t()})}initBridge(t){if(!te())return t==null?void 0:t(null);if(window.WebViewJavascriptBridge!=null)return t(window.WebViewJavascriptBridge);if(window.WVJBCallbacks!=null)return window.WVJBCallbacks.push(t);window.WVJBCallbacks=[t];const s=document.createElement("iframe");s.style.display="none",s.src="https://__bridge_loaded__",document.documentElement.appendChild(s),setTimeout(()=>document.documentElement.removeChild(s),0)}async callHandler(t,s){return await new Promise(o=>{var a;(a=this.instance)==null||a.callHandler(t,s,o)})}async ping(){return await this.callHandler("ping")}async readConfigString(){return await this.callHandler("readConfigString")}async getPasteboard(){return await this.callHandler("getPasteboard")}async getAPIInfo(){return await this.callHandler("apiInfo")}async setPasteboard(t){return await this.callHandler("setPasteboard",t)}async writeConfigWithString(t){return await this.callHandler("writeConfigWithString",t)}async setSystemProxy(t){return await this.callHandler("setSystemProxy",t)}async getStartAtLogin(){return await this.callHandler("getStartAtLogin")}async getProxyDelay(t){return await this.callHandler("speedTest",t)}async setStartAtLogin(t){return await this.callHandler("setStartAtLogin",t)}async isSystemProxySet(){return await this.callHandler("isSystemProxySet")}}function Rt(n){if(P!=null){n();return}P=new Lt(n)}function q(n){const{title:t,children:s,className:o,style:a}=n;return e.createElement("header",{className:g("header",o),style:a},e.createElement("h1",{className:"md:text-xl"},t),e.createElement("div",{className:"flex flex-auto items-center justify-end"},s))}function M(n){const{type:t,size:s=14,className:o,style:a}=n,l=g("clash-iconfont",`icon-${t}`,o),r=N({fontSize:s},a),c=I(N({},n),{className:l,style:r});return e.createElement("i",N({},c))}function W(){}function Tt(n,t){const s=[],o=[];for(const a of n)t(a)?s.push(a):o.push(a);return[s,o]}function j(n){var o;const t=["B","KB","MB","GB","TB"],s=Math.floor(Math.log(n||1)/Math.log(1024));return`${rt(n/Math.pow(1024,s),2).toFixed(2)} ${(o=t==null?void 0:t[s])!=null?o:""}`}function Oe(n){return n.replace(/.*[/\\]/,"")}function fe(n){const{className:t,checked:s=!1,disabled:o=!1,onChange:a=W}=n,l=g("switch",{checked:s,disabled:o},t);function r(){o||a(!s)}return e.createElement("div",{className:l,onClick:r},e.createElement(M,{className:"switch-icon font-bold",type:"check",size:20}))}const G=m.exports.forwardRef((n,t)=>{const{className:s,style:o,children:a}=n;return e.createElement("div",{className:g("card",s),style:o,ref:t},a)});function Te(n){const{options:t,value:s,onSelect:o}=n;return e.createElement("div",{className:"button-select"},t.map(a=>e.createElement("button",{value:a.value,key:a.value,className:g("button-select-options",{actived:s===a.value}),onClick:()=>o==null?void 0:o(a.value)},a.label)))}const It={SideBar:{Proxies:"Proxies",Overview:"Overview",Logs:"Logs",Rules:"Rules",Settings:"Setting",Connections:"Connections",Version:"Version"},Settings:{title:"Settings",labels:{startAtLogin:"Start at login",language:"language",setAsSystemProxy:"Set as system proxy",allowConnectFromLan:"Allow connect from Lan",proxyMode:"Mode",socks5ProxyPort:"Socks5 proxy port",httpProxyPort:"HTTP proxy port",mixedProxyPort:"Mixed proxy port",externalController:"External controller"},values:{cn:"\u4E2D\u6587",en:"English",global:"Global",rules:"Rules",direct:"Direct",script:"Script"},versionString:"Current ClashX is the latest version\uFF1A{{version}}",checkUpdate:"Check Update",externalControllerSetting:{title:"External Controller",note:"Please note that modifying this configuration will only configure Dashboard. Will not modify your Clash configuration file. Please make sure that the external controller address matches the address in the Clash configuration file, otherwise, Dashboard will not be able to connect to Clash.",host:"Host",port:"Port",secret:"Secret"}},Logs:{title:"Logs",levelLabel:"Log level"},Rules:{title:"Rules",providerTitle:"Providers",providerUpdateTime:"Last updated at",ruleCount:"Rule count"},Connections:{title:"Connections",keepClosed:"Keep closed connections",total:{text:"total",upload:"upload",download:"download"},closeAll:{title:"Warning",content:"This would close all connections"},filter:{all:"All"},columns:{host:"Host",network:"Network",type:"Type",chains:"Chains",process:"Process",rule:"Rule",time:"Time",speed:"Speed",upload:"Upload",download:"Download",sourceIP:"Source IP"},info:{title:"Connection",id:"ID",host:"Host",hostEmpty:"Empty",dstIP:"IP",dstIPEmpty:"Empty",srcIP:"Source",upload:"Upload",download:"Download",network:"Network",process:"Process",processPath:"Path",inbound:"Inbound",rule:"Rule",chains:"Chains",status:"Status",opening:"Open",closed:"Closed",closeConnection:"Close"}},Proxies:{title:"Proxies",editDialog:{title:"Edit Proxy",color:"Color",name:"Name",type:"Type",server:"Server",port:"Port",password:"Password",cipher:"Cipher",obfs:"Obfs","obfs-host":"Obfs-host",uuid:"UUID",alterId:"AlterId",tls:"TLS"},groupTitle:"Policy Group",providerTitle:"Providers",providerUpdateTime:"Last updated at",expandText:"Expand",collapseText:"Collapse",speedTestText:"Speed Test",breakConnectionsText:"Close connections which include the group"},Modal:{ok:"Ok",cancel:"Cancel"}},Bt={SideBar:{Proxies:"\u4EE3\u7406",Overview:"\u603B\u89C8",Logs:"\u65E5\u5FD7",Rules:"\u89C4\u5219",Settings:"\u8BBE\u7F6E",Connections:"\u8FDE\u63A5",Version:"\u7248\u672C"},Settings:{title:"\u8BBE\u7F6E",labels:{startAtLogin:"\u5F00\u673A\u65F6\u542F\u52A8",language:"\u8BED\u8A00",setAsSystemProxy:"\u8BBE\u7F6E\u4E3A\u7CFB\u7EDF\u4EE3\u7406",allowConnectFromLan:"\u5141\u8BB8\u6765\u81EA\u5C40\u57DF\u7F51\u7684\u8FDE\u63A5",proxyMode:"\u4EE3\u7406\u6A21\u5F0F",socks5ProxyPort:"Socks5 \u4EE3\u7406\u7AEF\u53E3",httpProxyPort:"HTTP \u4EE3\u7406\u7AEF\u53E3",mixedProxyPort:"\u6DF7\u5408\u4EE3\u7406\u7AEF\u53E3",externalController:"\u5916\u90E8\u63A7\u5236\u8BBE\u7F6E"},values:{cn:"\u4E2D\u6587",en:"English",global:"\u5168\u5C40",rules:"\u89C4\u5219",direct:"\u76F4\u8FDE",script:"\u811A\u672C"},versionString:"\u5F53\u524D ClashX \u5DF2\u662F\u6700\u65B0\u7248\u672C\uFF1A{{version}}",checkUpdate:"\u68C0\u67E5\u66F4\u65B0",externalControllerSetting:{title:"\u7F16\u8F91\u5916\u90E8\u63A7\u5236\u8BBE\u7F6E",note:"\u8BF7\u6CE8\u610F\uFF0C\u4FEE\u6539\u8BE5\u914D\u7F6E\u9879\u5E76\u4E0D\u4F1A\u4FEE\u6539\u4F60\u7684 Clash \u914D\u7F6E\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u4FEE\u6539\u540E\u7684\u5916\u90E8\u63A7\u5236\u5730\u5740\u548C Clash \u914D\u7F6E\u6587\u4EF6\u5185\u7684\u5730\u5740\u4E00\u81F4\uFF0C\u5426\u5219\u4F1A\u5BFC\u81F4 Dashboard \u65E0\u6CD5\u8FDE\u63A5\u3002",host:"Host",port:"\u7AEF\u53E3",secret:"\u5BC6\u94A5"}},Logs:{title:"\u65E5\u5FD7",levelLabel:"\u65E5\u5FD7\u7B49\u7EA7"},Rules:{title:"\u89C4\u5219",providerTitle:"\u89C4\u5219\u96C6",providerUpdateTime:"\u6700\u540E\u66F4\u65B0\u4E8E",ruleCount:"\u89C4\u5219\u6761\u6570"},Connections:{title:"\u8FDE\u63A5",keepClosed:"\u4FDD\u7559\u5173\u95ED\u8FDE\u63A5",total:{text:"\u603B\u91CF",upload:"\u4E0A\u4F20",download:"\u4E0B\u8F7D"},closeAll:{title:"\u8B66\u544A",content:"\u5C06\u4F1A\u5173\u95ED\u6240\u6709\u8FDE\u63A5"},filter:{all:"\u5168\u90E8"},columns:{host:"\u57DF\u540D",network:"\u7F51\u7EDC",process:"\u8FDB\u7A0B",type:"\u7C7B\u578B",chains:"\u8282\u70B9\u94FE",rule:"\u89C4\u5219",time:"\u8FDE\u63A5\u65F6\u95F4",speed:"\u901F\u7387",upload:"\u4E0A\u4F20",download:"\u4E0B\u8F7D",sourceIP:"\u6765\u6E90 IP"},info:{title:"\u8FDE\u63A5\u4FE1\u606F",id:"ID",host:"\u57DF\u540D",hostEmpty:"\u7A7A",dstIP:"IP",dstIPEmpty:"\u7A7A",srcIP:"\u6765\u6E90",upload:"\u4E0A\u4F20",download:"\u4E0B\u8F7D",network:"\u7F51\u7EDC",process:"\u8FDB\u7A0B",processPath:"\u8DEF\u5F84",inbound:"\u5165\u53E3",rule:"\u89C4\u5219",chains:"\u4EE3\u7406",status:"\u72B6\u6001",opening:"\u8FDE\u63A5\u4E2D",closed:"\u5DF2\u5173\u95ED",closeConnection:"\u5173\u95ED\u8FDE\u63A5"}},Proxies:{title:"\u4EE3\u7406",editDialog:{title:"\u7F16\u8F91\u4EE3\u7406",color:"\u989C\u8272",name:"\u540D\u5B57",type:"\u7C7B\u578B",server:"\u670D\u52A1\u5668",port:"\u7AEF\u53E3",password:"\u5BC6\u7801",cipher:"\u52A0\u5BC6\u65B9\u5F0F",obfs:"Obfs","obfs-host":"Obfs-host",uuid:"UUID",alterId:"AlterId",tls:"TLS"},groupTitle:"\u7B56\u7565\u7EC4",providerTitle:"\u4EE3\u7406\u96C6",providerUpdateTime:"\u6700\u540E\u66F4\u65B0\u4E8E",expandText:"\u5C55\u5F00",collapseText:"\u6536\u8D77",speedTestText:"\u6D4B\u901F",breakConnectionsText:"\u5207\u6362\u65F6\u6253\u65AD\u5305\u542B\u7B56\u7565\u7EC4\u7684\u8FDE\u63A5"},Modal:{ok:"\u786E \u5B9A",cancel:"\u53D6 \u6D88"}},Ue={en_US:It,zh_CN:Bt},Mt=Object.keys(Ue);function zt(){for(const n of window.navigator.languages){if(n.includes("zh"))return"zh_CN";if(n.includes("us"))return"en_US"}return"en_US"}function Se(n){return m.exports.useMemo(()=>{function s(o,a){if(typeof o=="string")n(l=>{const r=o,c=a;l[r]=c});else if(typeof o=="function"){const l=o;n(r=>l(r))}else typeof o=="object"&&n(l=>se(l,r=>{const c=o;for(const i of Object.keys(c)){const h=i;r[h]=c[h]}}))}return s},[n])}class je{constructor(t){this.EE=new Me,this.innerBuffer=[],this.url="",this.connection=null,this.config=Object.assign({bufferLength:0,retryInterval:5e3},t)}connectWebsocket(){const t=new URL(this.url);this.connection=new WebSocket(t.toString()),this.connection.addEventListener("message",s=>{const o=JSON.parse(s.data);this.EE.emit("data",[o]),this.config.bufferLength>0&&(this.innerBuffer.push(o),this.innerBuffer.length>this.config.bufferLength&&this.innerBuffer.splice(0,this.innerBuffer.length-this.config.bufferLength))}),this.connection.addEventListener("error",s=>{var o;this.EE.emit("error",s),(o=this.connection)==null||o.close(),setTimeout(this.connectWebsocket,this.config.retryInterval)})}connect(t){var s;this.url===t&&this.connection||(this.url=t,(s=this.connection)==null||s.close(),this.connectWebsocket())}subscribe(t,s){this.EE.addListener(t,s)}unsubscribe(t,s){this.EE.removeListener(t,s)}buffer(){return this.innerBuffer.slice()}destory(){var t;this.EE.removeAllListeners(),(t=this.connection)==null||t.close(),this.connection=null}}class Ht{constructor(t,s){this.axiosClient=ct.create({baseURL:t,headers:s?{Authorization:`Bearer ${s}`}:{}})}async getConfig(){return await this.axiosClient.get("configs")}async updateConfig(t){return await this.axiosClient.patch("configs",t)}async getRules(){return await this.axiosClient.get("rules")}async getProxyProviders(){const t=await this.axiosClient.get("providers/proxies",{validateStatus(s){return s>=200&&s<300||s===404}});return t.status===404&&(t.data={providers:{}}),t}async getRuleProviders(){return await this.axiosClient.get("providers/rules")}async updateProvider(t){return await this.axiosClient.put(`providers/proxies/${encodeURIComponent(t)}`)}async updateRuleProvider(t){return await this.axiosClient.put(`providers/rules/${encodeURIComponent(t)}`)}async healthCheckProvider(t){return await this.axiosClient.get(`providers/proxies/${encodeURIComponent(t)}/healthcheck`)}async getProxies(){return await this.axiosClient.get("proxies")}async getProxy(t){return await this.axiosClient.get(`proxies/${encodeURIComponent(t)}`)}async getVersion(){return await this.axiosClient.get("version")}async getProxyDelay(t){return await this.axiosClient.get(`proxies/${encodeURIComponent(t)}/delay`,{params:{timeout:5e3,url:"http://www.gstatic.com/generate_204"}})}async closeAllConnections(){return await this.axiosClient.delete("connections")}async closeConnection(t){return await this.axiosClient.delete(`connections/${t}`)}async getConnections(){return await this.axiosClient.get("connections")}async changeProxySelected(t,s){return await this.axiosClient.put(`proxies/${encodeURIComponent(t)}`,{name:s})}}const Ot=Y(async()=>{if(!te())return null;const n=await P.getAPIInfo();return{hostname:n.host,port:n.port,secret:n.secret,protocol:"http:"}}),We=we("externalControllers",[]);function oe(){var h,p,f,d,E,v,w,$,D,F,S,A,Z,z,V;const n=Ee(Ot),t=Ce(),s=Ee(We);if(n!=null)return n;let o;{const J=document.querySelector('meta[name="external-controller"]');((h=J==null?void 0:J.content)==null?void 0:h.match(/^https?:/))!=null&&(o=new URL(J.content))}const a=new URLSearchParams(t.search),l=(E=(d=(f=a.get("host"))!=null?f:(p=s==null?void 0:s[0])==null?void 0:p.hostname)!=null?d:o==null?void 0:o.hostname)!=null?E:"127.0.0.1",r=(D=($=(w=a.get("port"))!=null?w:(v=s==null?void 0:s[0])==null?void 0:v.port)!=null?$:o==null?void 0:o.port)!=null?D:"9090",c=(Z=(A=(S=a.get("secret"))!=null?S:(F=s==null?void 0:s[0])==null?void 0:F.secret)!=null?A:o==null?void 0:o.username)!=null?Z:"",i=((z=a.get("protocol"))!=null?z:l==="127.0.0.1")?"http:":(V=o==null?void 0:o.protocol)!=null?V:window.location.protocol;return{hostname:l,port:r,secret:c,protocol:i}}const Ut=Y({key:"",instance:null});function B(){const{hostname:n,port:t,secret:s,protocol:o}=oe(),[a,l]=_(Ut),r=`${o}//${n}:${t}?secret=${s}`;if(a.key===r)return a.instance;const c=new Ht(`${o}//${n}:${t}`,s);return l({key:r,instance:c}),c}const ke=Y(!0),jt=we("language",void 0);function k(){const[n,t]=_(jt),s=m.exports.useMemo(()=>n!=null?n:zt(),[n]),o=m.exports.useCallback(function(a){function l(r){return ut(Ue[s][a],r)}return{t:l}},[s]);return{lang:s,locales:Mt,setLang:t,translation:o}}const _e=Y({version:"",premium:!1});function Ge(){const[n,t]=_(_e),s=B(),o=be(ke);return Q([s],async function(){const a=await He.fromPromise(s.getVersion(),l=>l);o(a.isOk()),t(a.isErr()?{version:"",premium:!1}:{version:a.value.data.version,premium:!!a.value.data.premium})}),n}function Ve(){const[{premium:n}]=_(_e),t=B(),{data:s,mutate:o}=Q(["/providers/rule",t,n],async()=>{if(!n)return[];const a=await t.getRuleProviders();return Object.keys(a.data.providers).map(l=>a.data.providers[l])});return{providers:s!=null?s:[],update:o}}const Wt=we("profile",{breakConnections:!1,logLevel:""});function ce(){const[n,t]=_(Wt),s=m.exports.useCallback(o=>{t(se(n,o))},[n,t]);return{data:n,set:Se(s)}}const Je=Y([]);function Xe(){const[n,t]=_(Je),s=B(),{data:o,mutate:a}=Q(["/providers/proxy",s],async()=>{const l=await s.getProxyProviders();return Object.keys(l.data.providers).map(r=>l.data.providers[r]).filter(r=>r.name!=="default").filter(r=>r.vehicleType!=="Compatible")});return m.exports.useEffect(()=>{t(o!=null?o:[])},[o,t]),{providers:n,update:a}}function De(){const n=B(),{data:t,mutate:s}=Q(["/config",n],async()=>{var l;const a=(await n.getConfig()).data;return{port:a.port,socksPort:a["socks-port"],mixedPort:(l=a["mixed-port"])!=null?l:0,redirPort:a["redir-port"],mode:a.mode.toLowerCase(),logLevel:a["log-level"],allowLan:a["allow-lan"]}});return{general:t!=null?t:{},update:s}}const qe=ze({proxies:[],groups:[],global:{name:"GLOBAL",type:"Selector",now:"",history:[],all:[]}});function ie(){const[n,t]=_(qe),s=Se(t),o=B(),{mutate:a}=Q(["/proxies",o],async()=>{const r=await o.getProxies(),c=r.data.proxies.GLOBAL;c.name="GLOBAL";const i=new Set(["Selector","URLTest","Fallback","LoadBalance"]),h=new Set(["DIRECT","REJECT","GLOBAL"]),p=c.all.filter(E=>!h.has(E)).map(E=>I(N({},r.data.proxies[E]),{name:E})),[f,d]=Tt(p,E=>!i.has(E.type));s({proxies:f,groups:d,global:c})}),l=m.exports.useCallback((r,c)=>{s(i=>{r==="GLOBAL"&&(i.global.now=c);for(const h of i.groups)h.name===r&&(h.now=c)})},[s]);return{proxies:n.proxies,groups:n.groups,global:n.global,update:a,markProxySelected:l,set:s}}const _t=Y(n=>{const t=n(qe),s=n(Je),o=new Map;for(const a of t.proxies)o.set(a.name,a);for(const a of s)for(const l of a.proxies)o.set(l.name,l);return o});function Ke(){const{data:n,mutate:t}=Q("/clashx",async()=>{var a,l;if(!te())return{isClashX:!1,startAtLogin:!1,systemProxy:!1};const s=(a=await(P==null?void 0:P.getStartAtLogin()))!=null?a:!1,o=(l=await(P==null?void 0:P.isSystemProxySet()))!=null?l:!1;return{startAtLogin:s,systemProxy:o,isClashX:!0}});return{data:n,update:t}}const Gt=ze([]);function Vt(){const[n,t]=_(Gt),s=Se(t),o=B();async function a(){const l=await o.getRules();s(l.data.rules)}return{rules:n,update:a}}const Jt=Y(new je({bufferLength:200}));function Ye(){const n=oe(),{general:t}=De(),{data:{logLevel:s}}=ce(),o=Ee(Jt),a=s||t.logLevel,l=it(`${n.protocol}//${n.hostname}:${n.port}/logs?level=${a}&secret=${n.secret}`),r=he(n);return m.exports.useEffect(()=>{if(a){const c=r.current,h=`${c.protocol==="http:"?"ws:":"wss:"}//${c.hostname}:${c.port}/logs?level=${a}&token=${c.secret}`;o.connect(h)}},[r,o,a,l]),o}function Xt(){const n=oe(),t=m.exports.useRef(new je({bufferLength:200})),o=`${n.protocol==="http:"?"ws:":"wss:"}//${n.hostname}:${n.port}/connections?token=${n.secret}`;return m.exports.useEffect(()=>{t.current.connect(o)},[o]),t.current}function qt(n){const{className:t,data:s,onClick:o,select:a,canClick:l,errSet:r,rowHeight:c}=n,{translation:i}=k(),{t:h}=i("Proxies"),[p,f]=m.exports.useState(!1),[d,E]=m.exports.useState(!1),v=m.exports.useRef(null);m.exports.useLayoutEffect(()=>{var S,A;E(((A=(S=v==null?void 0:v.current)==null?void 0:S.offsetHeight)!=null?A:0)>30)},[]);const w=p?"auto":c,$=l?o:W;function D(){f(!p)}const F=s.map(S=>{const A=g({"tags-selected":a===S,"cursor-pointer":l,error:r==null?void 0:r.has(S)});return e.createElement("li",{className:A,key:S,onClick:()=>$(S)},S)});return e.createElement("div",{className:g("flex items-start overflow-y-hidden",t),style:{height:w}},e.createElement("ul",{ref:v,className:g("tags",{expand:p})},F),d&&e.createElement("span",{className:"h-7 px-5 select-none cursor-pointer leading-7",onClick:D},h(p?"collapseText":"expandText")))}function ee(n){const{className:t,style:s,value:o="",align:a="center",inside:l=!1,autoFocus:r=!1,type:c="text",disabled:i=!1,onChange:h=W,onBlur:p=W,onEnter:f=W}=n,d=g("input",`text-${a}`,{"focus:shadow-none":l},t);function E(v){v.code==="Enter"&&f(v)}return e.createElement("input",{disabled:i,className:d,style:s,value:o,autoFocus:r,type:c,onChange:v=>h(v.target.value,v),onBlur:p,onKeyDown:E})}function Kt(n){const{value:t,options:s,onSelect:o,className:a,style:l}=n,r=m.exports.useRef(document.createElement("div")),c=m.exports.useRef(null),[i,h]=m.exports.useState(!1),[p,f]=m.exports.useState({});m.exports.useLayoutEffect(()=>{const w=c.current.getBoundingClientRect();f({top:Math.floor(w.top+w.height)+6,left:Math.floor(w.left)-10})},[]),m.exports.useLayoutEffect(()=>{const w=r.current;return document.body.appendChild(w),()=>{document.body.removeChild(w)}},[]);function d(){h(!i)}const E=m.exports.useMemo(()=>s.find(w=>w.value===t),[t,s]),v=e.createElement("div",{className:g("select-list",{"select-list-show":i}),style:p},e.createElement("ul",{className:"list"},s.map(w=>{var $;return e.createElement(Yt,{className:g({selected:w.value===t}),onClick:D=>{o==null||o(w.value,D),h(!1)},disabled:w.disabled,key:($=w.key)!=null?$:w.value,value:w.value},w.label)})));return e.createElement(e.Fragment,null,e.createElement("div",{className:g("select",a),style:l,ref:c,onClick:d},E==null?void 0:E.label,e.createElement(M,{type:"triangle-down"})),Ne.exports.createPortal(v,r.current))}function Yt(n){const{className:t,style:s,disabled:o=!1,children:a,onClick:l=W}=n,r=g("option",{disabled:o},t);return e.createElement("li",{className:r,style:s,onClick:l},a)}function Qe(n){const{show:t=!0,title:s="Modal",size:o="small",footer:a=!0,onOk:l=W,onClose:r=W,bodyClassName:c,bodyStyle:i,className:h,style:p,children:f}=n,{translation:d}=k(),{t:E}=d("Modal"),v=m.exports.useRef(document.createElement("div")),w=m.exports.useRef(null);m.exports.useLayoutEffect(()=>{const F=v.current;return document.body.appendChild(F),()=>{document.body.removeChild(F)}},[]);function $(F){F.target===w.current&&r()}const D=e.createElement("div",{className:g("modal-mask",{"modal-show":t}),ref:w,onMouseDown:$},e.createElement("div",{className:g("modal",`modal-${o}`,h),style:p},e.createElement("div",{className:"modal-title"},s),e.createElement("div",{className:g("modal-body",c),style:i},f),a&&e.createElement("div",{className:"footer"},e.createElement(ye,{onClick:()=>r()},E("cancel")),e.createElement(ye,{type:"primary",onClick:()=>l()},E("ok")))));return Ne.exports.createPortal(D,v.current)}const Qt={success:"check",info:"info",warning:"info",error:"close"};function Zt(n){const{message:t="",type:s="info",inside:o=!1,children:a,className:l,style:r}=n,c=g("alert",`alert-${o?"note":"box"}-${s}`,l);return e.createElement("div",{className:c,style:r},e.createElement("span",{className:"alert-icon"},e.createElement(M,{type:Qt[s],size:26})),t?e.createElement("p",{className:"alert-message"},t):e.createElement("div",{className:"alert-message"},a))}function ye(n){const{type:t="normal",onClick:s=W,children:o,className:a,style:l,disiabled:r}=n,c=g("button",`button-${t}`,a,{"button-disabled":r});return e.createElement("button",{className:c,style:l,onClick:s,disabled:r},o)}function le(n){const[t,s]=mt(n),o=m.exports.useMemo(()=>{function a(l,r){typeof l=="string"?s(c=>{const i=l,h=r;c[i]=h}):typeof l=="function"?s(l):typeof l=="object"&&s(c=>{const i=l;for(const h of Object.keys(i)){const p=h;c[p]=i[p]}})}return a},[s]);return[t,o]}function en(n,t=0){if(n.length<2)throw new Error("List requires at least two elements");const[s,o]=m.exports.useState(t);function a(){o((s+1)%n.length)}return{current:m.exports.useMemo(()=>n[s],[n,s]),next:a}}function Fe(n=!1){const[t,s]=m.exports.useState(n);function o(){s(!1)}function a(){s(!0)}return{visible:t,hide:o,show:a}}function Ze(n){const{className:t,checked:s=!1,onChange:o=W}=n,a=g("checkbox",{checked:s},t);function l(){o(!s)}return e.createElement("div",{className:a,onClick:l},e.createElement(M,{className:"checkbox-icon",type:"check",size:18}),e.createElement("div",null,n.children))}function re(n){const{color:t,className:s,style:o}=n,a=g("tag",s),l=N({color:t},o),r=I(N({},n),{className:a,style:l});return e.createElement("span",N({},r),n.children)}function tn(n){const t=g("spinner",n.className);return e.createElement("div",{className:t},e.createElement("div",{className:"spinner-circle"},e.createElement("div",{className:"spinner-inner"})),e.createElement("div",{className:"spinner-circle"},e.createElement("div",{className:"spinner-inner"})),e.createElement("div",{className:"spinner-circle"},e.createElement("div",{className:"spinner-inner"})),e.createElement("div",{className:"spinner-circle"},e.createElement("div",{className:"spinner-inner"})),e.createElement("div",{className:"spinner-circle"},e.createElement("div",{className:"spinner-inner"})))}function et(n){const t=g("loading","visible",n.className);return n.visible?e.createElement("div",{className:t},e.createElement(tn,{className:n.spinnerClassName})):null}function nn(n){var a,l,r;const t=m.exports.useRef(document.createElement("div"));m.exports.useLayoutEffect(()=>{const c=t.current;return document.body.appendChild(c),()=>{document.body.removeChild(c)}},[]);const s="absolute h-full right-0 transition-transform transform translate-x-full duration-100 pointer-events-auto",o=e.createElement("div",{className:g(n.className,"absolute inset-0 pointer-events-none z-9999")},e.createElement(G,{className:g(s,n.bodyClassName,{"translate-x-0":n.visible}),style:{width:(a=n.width)!=null?a:400}},n.children));return Ne.exports.createPortal(o,(r=(l=n.containerRef)==null?void 0:l.current)!=null?r:t.current)}Pe.extend(dt);function Ae(n,t){const s=t==="en_US"?"en":"zh-cn";return Pe().locale(s).from(n)}function sn(n){const{translation:t}=k(),s=m.exports.useMemo(()=>t("Connections").t,[t]),{className:o,style:a}=n,l=g("flex flex-wrap px-1",o);function r(c){var i;(i=n.onChange)==null||i.call(n,c)}return e.createElement("div",{className:l,style:a},e.createElement("div",{className:g("connections-devices-item pt-2 mb-2",{selected:n.selected===""}),onClick:()=>r("")},s("filter.all")),n.devices.map(c=>e.createElement("div",{key:c.label,className:g("connections-devices-item pt-2 mb-2",{selected:n.selected===c.label}),onClick:()=>r(c.label)},c.label," (",c.number,")")))}function on(n){var o,a,l,r,c,i,h,p,f,d,E,v,w;const{translation:t}=k(),s=m.exports.useMemo(()=>t("Connections").t,[t]);return e.createElement("div",{className:g(n.className,"text-sm flex flex-col overflow-y-auto")},e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.id")),e.createElement("span",{className:"font-mono"},n.connection.id)),e.createElement("div",{className:"flex my-3 justify-between"},e.createElement("div",{className:"flex flex-1"},e.createElement("span",{className:"font-bold w-20"},s("info.network")),e.createElement("span",{className:"font-mono"},(o=n.connection.metadata)==null?void 0:o.network)),e.createElement("div",{className:"flex flex-1"},e.createElement("span",{className:"font-bold w-20"},s("info.inbound")),e.createElement("span",{className:"font-mono"},(a=n.connection.metadata)==null?void 0:a.type))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.host")),e.createElement("span",{className:"font-mono flex-1 break-all"},(l=n.connection.metadata)!=null&&l.host?`${n.connection.metadata.host}:${(r=n.connection.metadata)==null?void 0:r.destinationPort}`:s("info.hostEmpty"))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.dstIP")),e.createElement("span",{className:"font-mono"},(c=n.connection.metadata)!=null&&c.destinationIP?`${n.connection.metadata.destinationIP}:${(i=n.connection.metadata)==null?void 0:i.destinationPort}`:s("info.hostEmpty"))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.srcIP")),e.createElement("span",{className:"font-mono"},`${(h=n.connection.metadata)==null?void 0:h.sourceIP}:${(p=n.connection.metadata)==null?void 0:p.sourcePort}`)),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.process")),e.createElement("span",{className:"font-mono"},(f=n.connection.metadata)!=null&&f.processPath?`${Oe(n.connection.metadata.processPath)}`:s("info.hostEmpty"))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.processPath")),e.createElement("span",{className:"font-mono flex-1 break-all"},(d=n.connection.metadata)!=null&&d.processPath?`${n.connection.metadata.processPath}`:s("info.hostEmpty"))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.rule")),e.createElement("span",{className:"font-mono"},n.connection.rule&&`${n.connection.rule}${n.connection.rulePayload&&` :: ${n.connection.rulePayload}`}`)),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.chains")),e.createElement("span",{className:"font-mono flex-1 break-all"},(E=n.connection.chains)==null?void 0:E.slice().reverse().join(" / "))),e.createElement("div",{className:"flex my-3 justify-between"},e.createElement("div",{className:"flex flex-1"},e.createElement("span",{className:"font-bold w-20"},s("info.upload")),e.createElement("span",{className:"font-mono"},j((v=n.connection.upload)!=null?v:0))),e.createElement("div",{className:"flex flex-1"},e.createElement("span",{className:"font-bold w-20"},s("info.download")),e.createElement("span",{className:"font-mono"},j((w=n.connection.download)!=null?w:0)))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.status")),e.createElement("span",{className:"font-mono"},n.connection.completed?e.createElement("span",{className:"text-red"},s("info.closed")):e.createElement("span",{className:"text-green"},s("info.opening")))))}class an{constructor(){this.connections=new Map,this.saveDisconnection=!1}appendToSet(t){var o;const s=t.reduce((a,l)=>a.set(l.id,l),new Map);for(const a of this.connections.keys())if(!s.has(a))if(!this.saveDisconnection)this.connections.delete(a);else{const l=this.connections.get(a);l!=null&&this.connections.set(a,se(l,r=>{r.completed=!0,r.uploadSpeed=0,r.downloadSpeed=0}))}for(const a of s.keys()){if(!this.connections.has(a)){this.connections.set(a,I(N({},s.get(a)),{uploadSpeed:0,downloadSpeed:0}));continue}const l=this.connections.get(a),r=s.get(a);(o=this.connections)==null||o.set(a,I(N({},r),{uploadSpeed:r.upload-l.upload,downloadSpeed:r.download-l.download}))}}toggleSave(){var t,s;if(this.saveDisconnection){this.saveDisconnection=!1;for(const o of this.connections.keys())(s=(t=this.connections)==null?void 0:t.get(o))!=null&&s.completed&&this.connections.delete(o)}else this.saveDisconnection=!0;return this.saveDisconnection}getConnections(){return[...this.connections.values()]}}function ln(){const n=m.exports.useMemo(()=>new an,[]),t=m.exports.useRef(!0),[s,o]=m.exports.useState([]),[a,l]=m.exports.useState(!1),r=m.exports.useCallback(function(i){n.appendToSet(i),t.current&&o(n.getConnections()),t.current=!t.current},[n]),c=m.exports.useCallback(function(){const i=n.toggleSave();l(i),i||o(n.getConnections()),t.current=!0},[n]);return{connections:s,feed:r,toggleSave:c,save:a}}const x={Host:"host",Network:"network",Process:"process",Type:"type",Chains:"chains",Rule:"rule",Speed:"speed",Upload:"upload",Download:"download",SourceIP:"sourceIP",Time:"time"},rn=new Set([x.Network,x.Type,x.Speed,x.Upload,x.Download,x.SourceIP,x.Time,x.Process]);function cn(n,t){switch(!0){case(n===0&&t===0):return"-";case(n!==0&&t!==0):return`\u2191 ${j(n)}/s \u2193 ${j(t)}/s`;case n!==0:return`\u2191 ${j(n)}/s`;default:return`\u2193 ${j(t)}/s`}}const R=pt().setRowType();function un(){const{translation:n,lang:t}=k(),s=m.exports.useMemo(()=>n("Connections").t,[n]),o=Xt(),a=he(o),l=B(),r=m.exports.useRef(null),[c,i]=le({uploadTotal:0,downloadTotal:0}),{visible:h,show:p,hide:f}=Fe();function d(){l.closeAllConnections().finally(()=>f())}const{connections:E,feed:v,save:w,toggleSave:$}=ln(),D=m.exports.useMemo(()=>E.map(u=>({id:u.id,host:`${u.metadata.host||u.metadata.destinationIP}:${u.metadata.destinationPort}`,chains:u.chains.slice().reverse().join(" / "),rule:u.rulePayload?`${u.rule} :: ${u.rulePayload}`:u.rule,time:new Date(u.start).getTime(),upload:u.upload,download:u.download,sourceIP:u.metadata.sourceIP,type:u.metadata.type,network:u.metadata.network.toUpperCase(),process:u.metadata.processPath,speed:{upload:u.uploadSpeed,download:u.downloadSpeed},completed:!!u.completed,original:u})),[E]),F=m.exports.useMemo(()=>{const u=ft(E,"metadata.sourceIP");return Object.keys(u).map(b=>({label:b,number:u[b].length})).sort((b,y)=>b.label.localeCompare(y.label))},[E]),S=m.exports.useRef(null),A=Et(S,{threshold:[1]}),Z=m.exports.useMemo(()=>R.createColumns([R.createDataColumn(x.Host,{minSize:260,size:260,header:s(`columns.${x.Host}`)}),R.createDataColumn(x.Network,{minSize:80,size:80,header:s(`columns.${x.Network}`)}),R.createDataColumn(x.Type,{minSize:100,size:100,header:s(`columns.${x.Type}`)}),R.createDataColumn(x.Chains,{minSize:200,size:200,header:s(`columns.${x.Chains}`)}),R.createDataColumn(x.Rule,{minSize:140,size:140,header:s(`columns.${x.Rule}`)}),R.createDataColumn(x.Process,{minSize:100,size:100,header:s(`columns.${x.Process}`),cell:u=>u.value?Oe(u.value):"-"}),R.createDataColumn(u=>[u.speed.upload,u.speed.download],{id:x.Speed,header:s(`columns.${x.Speed}`),minSize:200,size:200,sortDescFirst:!0,sortingFn(u,b){var U,T,K,$e;const y=(T=(U=u.original)==null?void 0:U.speed)!=null?T:{upload:0,download:0},O=($e=(K=b.original)==null?void 0:K.speed)!=null?$e:{upload:0,download:0};return y.download===O.download?y.upload-O.upload:y.download-O.download},cell:u=>cn(u.value[0],u.value[1])}),R.createDataColumn(x.Upload,{minSize:100,size:100,header:s(`columns.${x.Upload}`),cell:u=>j(u.value)}),R.createDataColumn(x.Download,{minSize:100,size:100,header:s(`columns.${x.Download}`),cell:u=>j(u.value)}),R.createDataColumn(x.SourceIP,{minSize:140,size:140,header:s(`columns.${x.SourceIP}`),filterFn:"equals"}),R.createDataColumn(x.Time,{minSize:120,size:120,header:s(`columns.${x.Time}`),cell:u=>Ae(new Date(u.value),t),sortingFn:(u,b)=>{var y,O,U,T;return((O=(y=b.original)==null?void 0:y.time)!=null?O:0)-((T=(U=u.original)==null?void 0:U.time)!=null?T:0)}})]),[t,s]);m.exports.useLayoutEffect(()=>{function u(b){for(const y of b)i({uploadTotal:y.uploadTotal,downloadTotal:y.downloadTotal}),v(y.connections)}return o==null||o.subscribe("data",u),()=>{o==null||o.unsubscribe("data",u)}},[o,v,i]),ht(()=>{var u;(u=a.current)==null||u.destory()});const z=yt(R,{data:D,columns:Z,getCoreRowModel:xt(),getSortedRowModel:gt(),getColumnFilteredRowModel:vt(),initialState:{sorting:[{id:x.Time,desc:!1}]},columnResizeMode:"onChange",enableColumnResizing:!0,autoResetSorting:!1,autoResetColumnFilters:!1}),V=z.getHeaderGroups()[0],[J,ue]=m.exports.useState("");function me(u){ue(u),z.setColumnFilterValue(x.SourceIP,u||void 0)}const[H,L]=le({visible:!1,selectedID:"",connection:{}});function de(){L(u=>{u.connection.completed=!0}),l.closeConnection(H.selectedID)}const X=he(H.connection);m.exports.useEffect(()=>{var b;const u=(b=D.find(y=>y.id===H.selectedID))==null?void 0:b.original;u?L(y=>{y.connection=N({},u),H.selectedID===X.current.id&&(y.connection.completed=X.current.completed)}):Object.keys(X.current).length!==0&&!X.current.completed&&L(y=>{y.connection.completed=!0})},[D,H.selectedID,X,L]);const ne=m.exports.useMemo(()=>{var u;return((u=A==null?void 0:A.intersectionRatio)!=null?u:0)<1},[A]),ae=V.headers.map((u,b)=>{const y=u.column,O=y.id;return e.createElement("th",I(N({},u.getHeaderProps(U=>se(U,T=>{T.className=g("connections-th",{resizing:y.getIsResizing(),fixed:y.id===x.Host,shadow:ne&&y.id===x.Host}),!T.style&&(T.style={}),T.style.width=u.getSize()}))),{ref:y.id===x.Host?S:void 0,key:O}),e.createElement("div",N({},y.getToggleSortingProps()),u.renderHeader(),y.getIsSorted()!==!1?y.getIsSorted()==="desc"?" \u2193":" \u2191":null),b!==V.headers.length-1&&e.createElement("div",I(N({},u.getResizerProps()),{className:"connections-resizer"})))}),C=z.getRowModel().rows.map(u=>{var b;return e.createElement("tr",I(N({},u.getRowProps()),{className:"cursor-default select-none",key:(b=u.original)==null?void 0:b.id,onClick:()=>{var y;return L({visible:!0,selectedID:(y=u.original)==null?void 0:y.id})}}),u.getAllCells().map(y=>{var U;const O=g("connections-block",{"text-center":rn.has(y.column.id),completed:(U=u.original)==null?void 0:U.completed},{fixed:y.column.id===x.Host,shadow:ne&&y.column.id===x.Host});return e.createElement("td",I(N({},y.getCellProps(T=>se(T,K=>{!K.style&&(K.style={}),K.className=O,K.style.width=y.column.getSize()}))),{key:y.column.id}),y.renderCell())}))});return e.createElement("div",{className:"page !h-100vh"},e.createElement(q,{title:s("title")},e.createElement("span",{className:"cursor-default flex-1 connections-filter"},`(${s("total.text")}: ${s("total.upload")} ${j(c.uploadTotal)} ${s("total.download")} ${j(c.downloadTotal)})`),e.createElement(Ze,{className:"connections-filter",checked:w,onChange:$},s("keepClosed")),e.createElement(M,{className:"connections-filter dangerous",onClick:p,type:"close-all",size:20})),F.length>1&&e.createElement(sn,{devices:F,selected:J,onChange:me}),e.createElement(G,{ref:r,className:"connections-card relative"},e.createElement("div",{className:"overflow-auto min-h-full min-w-full"},e.createElement("table",N({},z.getTableProps()),e.createElement("thead",null,e.createElement("tr",I(N({},V.getHeaderGroupProps()),{className:"connections-header"}),ae)),e.createElement("tbody",N({},z.getTableBodyProps()),C)))),e.createElement(Qe,{title:s("closeAll.title"),show:h,onClose:f,onOk:d},s("closeAll.content")),e.createElement(nn,{containerRef:r,bodyClassName:"flex flex-col",visible:H.visible,width:450},e.createElement("div",{className:"flex h-8 justify-between items-center"},e.createElement("span",{className:"font-bold pl-3"},s("info.title")),e.createElement(M,{type:"close",size:16,className:"cursor-pointer",onClick:()=>L("visible",!1)})),e.createElement(on,{className:"mt-3 px-5",connection:H.connection}),e.createElement("div",{className:"flex mt-3 pr-3 justify-end"},e.createElement(ye,{type:"danger",disiabled:H.connection.completed,onClick:()=>de()},s("info.closeConnection")))))}function mn(){const{translation:n}=k(),{t}=n("Settings"),{hostname:s,port:o,secret:a}=oe(),[l,r]=_(ke),[c,i]=le({hostname:"",port:"",secret:""});m.exports.useEffect(()=>{i({hostname:s,port:o,secret:a})},[s,o,a,i]);const h=be(We);function p(){const{hostname:f,port:d,secret:E}=c;h([{hostname:f,port:d,secret:E}])}return e.createElement(Qe,{show:!l,title:t("externalControllerSetting.title"),bodyClassName:"external-controller",onClose:()=>r(!0),onOk:p},e.createElement(Zt,{type:"info",inside:!0},e.createElement("p",null,t("externalControllerSetting.note"))),e.createElement("div",{className:"flex items-center"},e.createElement("span",{className:"font-bold my-1 w-14 md:my-3"},t("externalControllerSetting.host")),e.createElement(ee,{className:"flex-1 my-1 md:my-3",align:"left",inside:!0,value:c.hostname,onChange:f=>i("hostname",f),onEnter:p})),e.createElement("div",{className:"flex items-center"},e.createElement("div",{className:"font-bold my-1 w-14 md:my-3"},t("externalControllerSetting.port")),e.createElement(ee,{className:"flex-1 my-1 w-14 md:my-3",align:"left",inside:!0,value:c.port,onChange:f=>i("port",f),onEnter:p})),e.createElement("div",{className:"flex items-center"},e.createElement("div",{className:"font-bold my-1 w-14 md:my-3"},t("externalControllerSetting.secret")),e.createElement(ee,{className:"flex-1 my-1 w-14 md:my-3",align:"left",inside:!0,value:c.secret,onChange:f=>i("secret",f),onEnter:p})))}const dn=[{label:"Default",value:""},{label:"Debug",value:"debug"},{label:"Info",value:"info"},{label:"Warn",value:"warning"},{label:"Error",value:"error"},{label:"Silent",value:"silent"}],pn=new Map([["debug","text-teal-500"],["info","text-sky-500"],["warning","text-pink-500"],["error","text-rose-500"]]);function fn(){var p,f;const n=m.exports.useRef(null),t=m.exports.useRef([]),[s,o]=m.exports.useState([]),{translation:a}=k(),{data:{logLevel:l},set:r}=ce(),{t:c}=a("Logs"),i=Ye(),h=m.exports.useRef((f=(p=n.current)==null?void 0:p.scrollHeight)!=null?f:0);return m.exports.useLayoutEffect(()=>{var E;const d=n.current;d!=null&&h.current===d.scrollTop+d.clientHeight&&(d.scrollTop=d.scrollHeight-d.clientHeight),h.current=(E=d==null?void 0:d.scrollHeight)!=null?E:0}),m.exports.useEffect(()=>{function d(E){t.current=t.current.slice().concat(E.map(v=>I(N({},v),{time:new Date}))),o(t.current)}return i!=null&&(i.subscribe("data",d),t.current=i.buffer(),o(t.current)),()=>i==null?void 0:i.unsubscribe("data",d)},[i]),e.createElement("div",{className:"page"},e.createElement(q,{title:c("title")},e.createElement("span",{className:"text-sm text-primary-darken mr-2"},c("levelLabel"),":"),e.createElement(Kt,{options:dn,value:wt(l),onSelect:d=>r(E=>{E.logLevel=d})})),e.createElement(G,{className:"flex flex-col flex-1 mt-2.5 md:mt-4"},e.createElement("ul",{className:"logs-panel",ref:n},s.map((d,E)=>e.createElement("li",{className:"leading-5 inline-block text-[11px]",key:E},e.createElement("span",{className:"mr-2 text-orange-400"},"[",Pe(d.time).format("YYYY-MM-DD HH:mm:ss"),"]"),e.createElement("span",{className:pn.get(d.type)},"[",d.type.toUpperCase(),"]"),e.createElement("span",null," ",d.payload))))))}var xe=(n=>(n.SPEED_NOTIFY="speed-notify",n))(xe||{});class En{constructor(){this.EE=new Me}notifySpeedTest(){this.EE.emit("speed-notify")}subscribe(t,s){this.EE.addListener(t,s)}unsubscribe(t,s){this.EE.removeListener(t,s)}}var ge=new En;const Ie={"#909399":0,"#00c520":260,"#ff9a28":600,"#ff3e5e":1/0};function tt(n){const{config:t,className:s}=n,{set:o}=ie(),a=B(),l=m.exports.useCallback(async f=>{var E;if(te())return(E=await(P==null?void 0:P.getProxyDelay(f)))!=null?E:0;const{data:{delay:d}}=await a.getProxyDelay(f);return d},[a]),r=m.exports.useCallback(async function(){const f=await He.fromPromise(l(t.name),E=>E),d=f.isErr()?0:f.value;o(E=>{const v=E.proxies.find(w=>w.name===t.name);v!=null&&v.history.push({time:Date.now().toString(),delay:d})})},[t.name,l,o]),c=m.exports.useMemo(()=>{var f;return(f=t.history)!=null&&f.length?t.history.slice(-1)[0].delay:0},[t]);m.exports.useLayoutEffect(()=>{const f=()=>{r()};return ge.subscribe(xe.SPEED_NOTIFY,f),()=>ge.unsubscribe(xe.SPEED_NOTIFY,f)},[r]);const i=m.exports.useMemo(()=>c===0,[c]),h=m.exports.useMemo(()=>Object.keys(Ie).find(f=>c<=Ie[f]),[c]),p=i?void 0:h;return e.createElement("div",{className:g("proxy-item",{"proxy-error":i},s)},e.createElement("span",{className:"proxy-type",style:{backgroundColor:p}},t.type),e.createElement("p",{className:"proxy-name"},t.name),e.createElement("p",{className:"proxy-delay"},c===0?"-":`${c}ms`))}function hn(n){const{markProxySelected:t}=ie(),[s]=_(_t),{data:o}=ce(),a=B(),{config:l}=n;async function r(h){if(await a.changeProxySelected(n.config.name,h),t(n.config.name,h),o.breakConnections){const p=[],f=await a.getConnections();for(const d of f.data.connections)d.chains.includes(n.config.name)&&p.push(d.id);await Promise.all(p.map(d=>a.closeConnection(d)))}}const c=m.exports.useMemo(()=>{var p;const h=new Set;for(const f of l.all){const d=(p=s.get(f))==null?void 0:p.history;(d==null?void 0:d.length)&&d.slice(-1)[0].delay===0&&h.add(f)}return h},[l.all,s]),i=l.type==="Selector";return e.createElement("div",{className:"proxy-group"},e.createElement("div",{className:"flex h-10 mt-4 w-full items-center justify-between md:h-15 md:mt-0 md:w-auto "},e.createElement("span",{className:"h-6 px-5 w-35 overflow-hidden overflow-ellipsis whitespace-nowrap md:w-30"},l.name),e.createElement(re,{className:"mr-5 md:mr-0"},l.type)),e.createElement("div",{className:"flex-1 py-2 md:py-4"},e.createElement(qt,{className:"ml-5 md:ml-8",data:l.all,onClick:r,errSet:c,select:l.now,canClick:i,rowHeight:30})))}function yn(n){const{update:t}=Xe(),{translation:s,lang:o}=k(),a=B(),{provider:l}=n,{t:r}=s("Proxies"),{visible:c,hide:i,show:h}=Fe();function p(){h(),a.healthCheckProvider(l.name).then(async()=>await t()).finally(()=>i())}function f(){h(),a.updateProvider(l.name).then(async()=>await t()).finally(()=>i())}const d=m.exports.useMemo(()=>l.proxies.slice().sort((E,v)=>-1*ve(E,v)),[l.proxies]);return e.createElement(G,{className:"proxy-provider"},e.createElement(et,{visible:c}),e.createElement("div",{className:"flex flex-col justify-between md:flex-row md:items-center "},e.createElement("div",{className:"flex items-center"},e.createElement("span",{className:"mr-6"},l.name),e.createElement(re,null,l.vehicleType)),e.createElement("div",{className:"flex pt-3 items-center md:pt-0"},l.updatedAt&&e.createElement("span",{className:"text-sm"},`${r("providerUpdateTime")}: ${Ae(new Date(l.updatedAt),o)}`),e.createElement(M,{className:"cursor-pointer text-red pl-5",type:"healthcheck",size:18,onClick:p}),e.createElement(M,{className:"cursor-pointer pl-5",type:"update",size:18,onClick:f}))),e.createElement("ul",{className:"proxies-list"},d.map(E=>e.createElement("li",{key:E.name},e.createElement(tt,{className:"proxy-provider-item",config:E})))))}const xn={[0]:"sort",[1]:"sort-ascending",[2]:"sort-descending"};function ve(n,t){const s=n.history.length>0?n.history.slice(-1)[0].delay:0;return((t.history.length>0?t.history.slice(-1)[0].delay:0)||Number.MAX_SAFE_INTEGER)-(s||Number.MAX_SAFE_INTEGER)}function gn(){const{groups:n,global:t}=ie(),{data:s,set:o}=ce(),{general:a}=De(),{translation:l}=k(),{t:r}=l("Proxies"),c=m.exports.useMemo(()=>a.mode==="global"?[t,...n]:n,[a,n,t]);return e.createElement(e.Fragment,null,c.length!==0&&e.createElement("div",{className:"flex flex-col"},e.createElement(q,{title:r("groupTitle")},e.createElement(Ze,{className:"cursor-pointer text-sm text-shadow-primary text-primary-600",checked:s.breakConnections,onChange:i=>o("breakConnections",i)},r("breakConnectionsText"))),e.createElement(G,{className:"my-2.5 p-0 md:my-4"},e.createElement("ul",{className:"list-none divide-y divide-gray-300"},c.map(i=>e.createElement("li",{key:i.name},e.createElement(hn,{config:i})))))))}function vn(){const{providers:n}=Xe(),{translation:t}=k(),{t:s}=t("Proxies");return e.createElement(e.Fragment,null,n.length!==0&&e.createElement("div",{className:"flex flex-col"},e.createElement(q,{title:s("providerTitle")}),e.createElement("ul",{className:"list-none"},n.map(o=>e.createElement("li",{className:"my-2.5 md:my-4",key:o.name},e.createElement(yn,{provider:o}))))))}function wn(){const{proxies:n}=ie(),{translation:t}=k(),{t:s}=t("Proxies");function o(){ge.notifySpeedTest()}const{current:a,next:l}=en([1,2,0]),r=m.exports.useMemo(()=>{switch(a){case 2:return n.slice().sort((i,h)=>ve(i,h));case 1:return n.slice().sort((i,h)=>-1*ve(i,h));default:return n.slice()}},[a,n]),c=l;return e.createElement(e.Fragment,null,r.length!==0&&e.createElement("div",{className:"flex flex-col"},e.createElement(q,{title:s("title")},e.createElement(M,{className:"ml-3",type:xn[a],onClick:c,size:20}),e.createElement(M,{className:"ml-3",type:"speed",size:20}),e.createElement("span",{className:"proxies-speed-test",onClick:o},s("speedTestText"))),e.createElement("ul",{className:"proxies-list"},r.map(i=>e.createElement("li",{key:i.name},e.createElement(tt,{config:i}))))))}function Cn(){return e.createElement("div",{className:"page"},e.createElement(gn,null),e.createElement(vn,null),e.createElement(wn,null))}function bn(n){const{update:t}=Ve(),{translation:s,lang:o}=k(),a=B(),{provider:l}=n,{t:r}=s("Rules"),{visible:c,hide:i,show:h}=Fe();function p(){h(),a.updateRuleProvider(l.name).then(async()=>await t()).finally(()=>i())}const f=g("rule-provider-icon",{"rule-provider-loading":c});return e.createElement("div",{className:"rule-provider"},e.createElement("div",{className:"rule-provider-header"},e.createElement("div",{className:"rule-provider-header-part"},e.createElement("span",{className:"rule-provider-name"},l.name),e.createElement(re,null,l.vehicleType),e.createElement(re,{className:"rule-provider-behavior"},l.behavior),e.createElement("span",{className:"rule-provider-update"},`${r("ruleCount")}: ${l.ruleCount}`)),e.createElement("div",{className:"rule-provider-header-part"},l.updatedAt&&e.createElement("span",{className:"rule-provider-update"},`${r("providerUpdateTime")}: ${Ae(new Date(l.updatedAt),o)}`),e.createElement(M,{className:f,type:"update",size:18,onClick:p}))))}function Nn(){const{providers:n}=Ve(),{translation:t}=k(),{t:s}=t("Rules");return e.createElement(e.Fragment,null,n.length!==0&&e.createElement("div",{className:"flex flex-col"},e.createElement(q,{title:s("providerTitle")}),e.createElement(G,{className:"divide-y rounded shadow-primary mt-4 p-0"},n.map(o=>e.createElement(bn,{key:o.name,provider:o})))))}function Pn(){const{rules:n,update:t}=Vt(),{translation:s}=k(),{t:o}=s("Rules");Q("rules",t);function a({index:l,style:r}){const c=n[l];return e.createElement("li",{className:"rule-item",style:r},e.createElement("div",{className:"flex py-1"},e.createElement("div",{className:"text-center w-40 rule-type"},c.type),e.createElement("div",{className:"flex-1 text-center payload"},c.payload),e.createElement("div",{className:"text-center w-40 rule-proxy"},c.proxy)))}return e.createElement("div",{className:"page"},e.createElement(Nn,null),e.createElement(q,{className:"not-first:mt-7.5",title:o("title")}),e.createElement(G,{className:"flex flex-col flex-1 mt-2.5 p-0 md:mt-4 focus:outline-none"},e.createElement(Ct,{className:"min-h-120"},({height:l,width:r})=>e.createElement(bt,{height:l,width:r,itemCount:n.length,itemSize:50},a))))}const Sn=[{label:"\u4E2D\u6587",value:"zh_CN"},{label:"English",value:"en_US"}];function kn(){var X,ne,ae;const{premium:n}=Ge(),{data:t,update:s}=Ke(),{general:o,update:a}=De(),l=be(ke),r=oe(),{translation:c,setLang:i,lang:h}=k(),{t:p}=c("Settings"),f=B(),[d,E]=le({socks5ProxyPort:7891,httpProxyPort:7890,mixedProxyPort:0});m.exports.useEffect(()=>{var C,u,b;E("socks5ProxyPort",(C=o==null?void 0:o.socksPort)!=null?C:0),E("httpProxyPort",(u=o==null?void 0:o.port)!=null?u:0),E("mixedProxyPort",(b=o==null?void 0:o.mixedPort)!=null?b:0)},[o,E]);async function v(C){await f.updateConfig({mode:C}),await a()}async function w(C){await(P==null?void 0:P.setStartAtLogin(C)),await s()}async function $(C){await(P==null?void 0:P.setSystemProxy(C)),await s()}function D(C){i(C)}async function F(){await f.updateConfig({port:d.httpProxyPort}),await a()}async function S(){await f.updateConfig({"socks-port":d.socks5ProxyPort}),await a()}async function A(){await f.updateConfig({"mixed-port":d.mixedProxyPort}),await a()}async function Z(C){await f.updateConfig({"allow-lan":C}),await a()}const{hostname:z,port:V}=r,{allowLan:J,mode:ue}=o,me=(X=t==null?void 0:t.startAtLogin)!=null?X:!1,H=(ne=t==null?void 0:t.systemProxy)!=null?ne:!1,L=(ae=t==null?void 0:t.isClashX)!=null?ae:!1,de=m.exports.useMemo(()=>{const C=[{label:p("values.global"),value:"Global"},{label:p("values.rules"),value:"Rule"},{label:p("values.direct"),value:"Direct"}];return n&&C.push({label:p("values.script"),value:"Script"}),C},[p,n]);return e.createElement("div",{className:"page"},e.createElement(q,{title:p("title")}),e.createElement(G,{className:"settings-card"},e.createElement("div",{className:"flex flex-wrap"},e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},p("labels.startAtLogin")),e.createElement(fe,{disabled:!(t!=null&&t.isClashX),checked:me,onChange:w})),e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},p("labels.language")),e.createElement(Te,{options:Sn,value:h,onSelect:C=>D(C)}))),e.createElement("div",{className:"flex flex-wrap"},e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},p("labels.setAsSystemProxy")),e.createElement(fe,{disabled:!L,checked:H,onChange:$})),e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},p("labels.allowConnectFromLan")),e.createElement(fe,{checked:J,onChange:Z})))),e.createElement(G,{className:"settings-card"},e.createElement("div",{className:"flex flex-wrap"},e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},p("labels.proxyMode")),e.createElement(Te,{options:de,value:Nt(ue),onSelect:v})),e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},p("labels.socks5ProxyPort")),e.createElement(ee,{className:"w-28",disabled:L,value:d.socks5ProxyPort,onChange:C=>E("socks5ProxyPort",+C),onBlur:S}))),e.createElement("div",{className:"flex flex-wrap"},e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},p("labels.httpProxyPort")),e.createElement(ee,{className:"w-28",disabled:L,value:d.httpProxyPort,onChange:C=>E("httpProxyPort",+C),onBlur:F})),e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},p("labels.mixedProxyPort")),e.createElement(ee,{className:"w-28",disabled:L,value:d.mixedProxyPort,onChange:C=>E("mixedProxyPort",+C),onBlur:A}))),e.createElement("div",{className:"flex flex-wrap"},e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},p("labels.externalController")),e.createElement("span",{className:g({"modify-btn":!L},"external-controller"),onClick:()=>!L&&l(!1)},`${z}:${V}`)),e.createElement("div",{className:"px-8 w-1/2"}))))}var Dn="./assets/logo.b453e72f.png";function Fn(n){const{routes:t}=n,{translation:s}=k(),{version:o,premium:a}=Ge(),{data:l}=Ke(),{t:r}=s("SideBar"),c=Ce(),i=t.map(({path:h,name:p,noMobile:f})=>e.createElement("li",{className:g("item",{"no-mobile":f}),key:p},e.createElement(Pt,{to:{pathname:h,search:c.search},className:({isActive:d})=>g({active:d})},r(p))));return e.createElement("div",{className:"sidebar"},e.createElement("img",{src:Dn,alt:"logo",className:"sidebar-logo"}),e.createElement("ul",{className:"sidebar-menu"},i),e.createElement("div",{className:"sidebar-version"},e.createElement("span",{className:"sidebar-version-label"},"Clash",(l==null?void 0:l.isClashX)&&"X"," ",r("Version")),e.createElement("span",{className:"sidebar-version-text"},o),a&&e.createElement("span",{className:"sidebar-version-label"},"Premium")))}function An(){Ye();const n=Ce(),t=[{path:"/proxies",name:"Proxies",element:e.createElement(Cn,null)},{path:"/logs",name:"Logs",element:e.createElement(fn,null)},{path:"/rules",name:"Rules",element:e.createElement(Pn,null),noMobile:!0},{path:"/connections",name:"Connections",element:e.createElement(un,null),noMobile:!0},{path:"/settings",name:"Settings",element:e.createElement(kn,null)}],s=e.createElement("div",{className:g("app",{"not-clashx":!te()})},e.createElement(Fn,{routes:t}),e.createElement("div",{className:"page-container"},e.createElement(St,null)),e.createElement(mn,null));return e.createElement(kt,null,e.createElement(pe,{path:"/",element:s},e.createElement(pe,{path:"/",element:e.createElement(Dt,{to:{pathname:"/proxies",search:n.search},replace:!0})}),t.map(o=>e.createElement(pe,{path:o.path,key:o.path,element:o.element}))))}function Be(){const n=document.getElementById("root"),t=e.createElement(m.exports.StrictMode,null,e.createElement(At,null,e.createElement(m.exports.Suspense,{fallback:e.createElement(et,{visible:!0})},e.createElement(An,null))));Ft(n).render(t)}te()?Rt(()=>Be()):Be();
--- a/applications/luci-app-openclash/root/usr/share/openclash/dashboard/assets/index.e3125dbb.css
+++ /dev/null
@@ -1 +0,0 @@
1-.header{margin:10px 0;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.header>h1{flex-shrink:0;font-size:24px;color:#2c8af8;font-weight:500;text-shadow:0 2px 6px rgba(44,138,248,.4);line-height:32px}.switch{display:inline-block;width:32px;height:16px;border-radius:8px;background-color:#d8dee2;transition:background-color .3s ease;position:relative;cursor:pointer}.switch.checked{background-color:#57befc}.switch.checked:after{transform:translate(16px)}.switch.disabled{cursor:not-allowed;background-color:#b7c5d6}.switch.disabled:after{background-color:#e4eaef;box-shadow:0 0 8px #90939980}.switch.checked.disabled{background-color:#e4eaef}.switch:after{content:"";position:absolute;top:-1px;height:18px;width:18px;border-radius:9px;background-color:#fff;box-shadow:0 0 8px #2c8af866;transition:transform .3s ease;transform:translate(-2px)}.switch-icon{position:absolute;transform:translate(-1px) scale(.4);color:#fff;line-height:16px}.card{padding:15px;box-shadow:2px 5px 20px -3px #2c8af82e;background-color:#fff;border-radius:4px}.button-select{display:flex;flex-direction:row}.button-select .button-select-options{height:30px;padding:0 15px;color:#54759a;font-size:12px;line-height:30px;background:#fff;border:1px solid #e4eaef;border-right:none;transition:all .3s ease;cursor:pointer;outline:0;display:block}.button-select .button-select-options:first-child{border-radius:3px 0 0 3px}.button-select .button-select-options:last-child{border-radius:0 3px 3px 0;border-right:1px solid #e4eaef}.button-select .button-select-options.actived{background:#57befc;color:#fff;border-color:#57befc;box-shadow:0 2px 5px #57befc80}.button-select .button-select-options.actived:active{box-shadow:none}.tags{display:flex;flex:1;align-items:center;list-style:none;flex-wrap:wrap;box-sizing:content-box}.tags li{position:relative;display:flex;align-items:center;justify-content:center;border:1px solid #2c8af8;color:#54759a;height:22px;border-radius:11px;padding:0 6px;margin:3px 4px;font-size:10px}.tags li.error{color:#fff;background-color:#f56c6c;border-color:#f56c6c}.tags li.tags-selected.error{background:linear-gradient(135deg,#2c8af8,#f56c6c);border:none;height:24px;padding:0 7px}.tags .tags-selected{background-color:#2c8af8;color:#fff}.input{display:inline-block;height:30px;width:100%;padding:0 10px;font-size:14px;color:#54759a;border-radius:3px;border:1px solid #e4eaef;transition:all .3s;transition-property:border-color,color,box-shadow}.input:focus{outline:0;border-color:#57befc;color:#2c8af8;box-shadow:0 2px 5px #57befc80}.select{cursor:pointer;font-size:14px;line-height:30px;color:#54759a;display:flex;overflow:hidden}.select>i{margin-left:5px;color:#54759a}.select-list{position:absolute;max-width:170px;border-radius:4px;overflow:hidden;box-shadow:0 2px 5px #b7c5d680;opacity:.8;pointer-events:none;transform:scaleY(0);transform-origin:top;transition:all .2s linear}.select-list .list{max-height:300px;overflow:auto;background:#fff;padding:5px 0;transform:scaleY(2);transform-origin:top;transition:all .2s linear}.select-list .list>.option{color:#54759a;padding:10px 15px;font-size:14px;list-style:none;cursor:pointer}.select-list .list>.option:hover{background:rgba(228,234,239,.5)}.select-list .list>.selected{background:rgba(228,234,239,.5)}.select-list-show{opacity:1;pointer-events:visible;transform:scaleY(1)}.select-list-show .list{transform:scaleY(1)}.modal-mask{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.15);opacity:0;pointer-events:none;transition:all .5s ease;display:flex;justify-content:center;align-items:center;z-index:9999}.modal-mask .modal{margin-top:-50px;padding:20px 30px;background:#fff;box-shadow:0 2px 16px #54759a33;border-radius:4px;display:flex;flex-direction:column;transform:scale(0);transition:all .3s cubic-bezier(.32,.26,.71,1.29)}.modal-mask .modal .modal-title{margin:5px 0;width:100%;display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:18px;color:#2c8af8;text-shadow:0 2px 6px rgba(44,138,248,.4)}.modal-mask .modal .modal-body{margin:10px 0;font-size:14px;color:#54759a}.modal-mask .modal .footer{width:100%;margin:5px 0;display:flex;align-items:center;justify-content:flex-end}.modal-mask .modal .footer .button{margin-left:10px}.modal-mask .modal-small{width:400px}.modal-mask .modal-big{width:600px}.modal-show{opacity:1;pointer-events:visible}.modal-show .modal{transform:scale(1)}@media (max-width: 768px){.modal-mask .modal{margin-top:0;padding:18px 20px}.modal-mask .modal-small{width:280px}.modal-mask .modal-big{width:480px}}.alert{padding:15px;background:#fff;border-radius:4px;box-shadow:0 2px 8px #2c8af84d;font-size:13px;line-height:1.6;text-align:justify;display:flex}.alert .alert-icon{margin-right:10px;width:20px;height:20px;border-radius:50%;flex-shrink:0;display:flex;justify-content:center;align-items:center;background:#fff}.alert .alert-icon>i{transform:scale(.5);font-weight:700}.alert .alert-message{width:100%;color:#fff}.alert-box-success{background:linear-gradient(135deg,#5dae34,#67c23a);box-shadow:0 2px 8px #5dae344d}.alert-box-success .alert-icon>i{color:#67c23a}.alert-box-info{background:linear-gradient(135deg,#3eb4fc,#57befc);box-shadow:0 2px 8px #3eb4fc4d}.alert-box-info .alert-icon>i{color:#57befc}.alert-box-warning{background:linear-gradient(135deg,#e39725,#e6a23c);box-shadow:0 2px 8px #e397254d}.alert-box-warning .alert-icon>i{color:#e6a23c}.alert-box-error{background:linear-gradient(135deg,#f35454,#f56c6c);box-shadow:0 2px 8px #f354544d}.alert-box-error .alert-icon>i{color:#f56c6c}.alert-note-success{background:rgba(103,194,58,.05);border-radius:1px 4px 4px 1px;border-left:2px solid #67c23a;box-shadow:0 2px 8px #5dae344d}.alert-note-success .alert-icon{background:#67c23a}.alert-note-success .alert-icon>i{color:#fff}.alert-note-success .alert-message{color:#3d7323}.alert-note-info{background:rgba(87,190,252,.05);border-radius:1px 4px 4px 1px;border-left:2px solid #57befc;box-shadow:0 2px 8px #3eb4fc4d}.alert-note-info .alert-icon{background:#57befc}.alert-note-info .alert-icon>i{color:#fff}.alert-note-info .alert-message{color:#0493e9}.alert-note-warning{background:rgba(230,162,60,.05);border-radius:1px 4px 4px 1px;border-left:2px solid #e6a23c;box-shadow:0 2px 8px #e397254d}.alert-note-warning .alert-icon{background:#e6a23c}.alert-note-warning .alert-icon>i{color:#fff}.alert-note-warning .alert-message{color:#a76d15}.alert-note-error{background:rgba(245,108,108,.05);border-radius:1px 4px 4px 1px;border-left:2px solid #f56c6c;box-shadow:0 2px 8px #f354544d}.alert-note-error .alert-icon{background:#f56c6c}.alert-note-error .alert-icon>i{color:#fff}.alert-note-error .alert-message{color:#eb1010}.button{outline:0;padding:0 15px;height:32px;line-height:32px;border-radius:16px;font-size:14px;cursor:pointer;transition:all .15s ease}.button:focus{outline:none}.button-primary{color:#fff;border:none;background:linear-gradient(135deg,#57befc,#2c8af8);box-shadow:0 2px 8px #2c8af880}.button-primary:hover{border:none}.button-primary:active{box-shadow:0 0 2px #2c8af880}.button-normal{color:#909399;background:#fff;border:1px solid rgba(0,0,0,.1)}.button-normal:hover{border-color:#b7c5d6;color:#54759a}.button-normal:active{background:#fafafa;color:#54759a}.button-danger{color:#fff;border:none;background:linear-gradient(135deg,#f56c6c,#f23c3c);box-shadow:0 2px 8px #f23c3c80}.button-danger:hover{border:none}.button-danger:active{box-shadow:0 0 2px #f23c3c80}.button-success{color:#fff;border:none;background:linear-gradient(135deg,#67c23a,#5dae34);box-shadow:0 2px 8px #5dae3480}.button-success:hover{border:none}.button-success:active{box-shadow:0 0 2px #5dae3480}.button-warning{color:#fff;border:none;background:linear-gradient(135deg,#e6a23c,#e39725);box-shadow:0 2px 8px #e3972580}.button-warning:hover{border:none}.button-warning:active{box-shadow:0 0 2px #e3972580}.button.button-disabled{color:#b7c5d6;background:linear-gradient(135deg,#f3f6f9,#e2e9f1);box-shadow:0 2px 8px #e2e9f180;cursor:not-allowed}.button.button-disabled:active{box-shadow:0 0 2px #e2e9f180}.message{position:fixed;top:20px;right:20px;border-radius:4px;opacity:0;background:#fff;display:flex;box-shadow:0 0 20px #2c8af833;transition:all .2s ease;transform:translate(100%)}.message .message-icon{width:36px;flex:1;border-radius:4px 0 0 4px;display:flex;justify-content:center;align-items:center}.message .message-icon>i{color:#fff}.message .message-content{padding:10px 15px;font-size:13px;color:#54759a}.message-info .message-icon{background:linear-gradient(135deg,#57befc,#2c8af8)}.message-success .message-icon{background:linear-gradient(135deg,#67c23a,#5dae34)}.message-warning .message-icon{background:linear-gradient(135deg,#e6a23c,#e39725)}.message-error .message-icon{background:linear-gradient(135deg,#f56c6c,#f23c3c)}.message-show{opacity:1;transition:all .2s ease;transform:translate(0)}.checkbox{display:flex;position:relative;padding-left:26px;cursor:pointer;line-height:18px}.checkbox:before{content:"";display:inline-block;position:absolute;left:0;top:50%;width:18px;height:18px;border-radius:3px;transition:background-color .3s ease;transform:translateY(-9px);background-color:#fff;border:1px solid #e4eaef}.checkbox.checked:before{background-color:#57befc}.checkbox-icon{position:absolute;left:0;top:50%;line-height:18px;transform:translateY(-9px) scale(.6);text-shadow:none;font-weight:700}.checkbox-icon.checkbox-icon{color:#fff}.tag{display:flex;align-items:center;justify-content:center;height:24px;font-size:12px;padding:0 12px;text-align:center;background-color:#fff;border:2px solid #2c8af8;color:#2c8af8;border-radius:12px}.spinner{position:relative;width:80px;height:80px;border-radius:100%;animation:spinner 5s infinite linear}.spinner-circle{position:absolute;width:100%;height:100%;transform-origin:48% 48%}.spinner-inner{width:100%;height:100%;border-radius:100%;border:5px solid rgba(44,138,248,.7);border-right:none;border-top:none;background-clip:padding-box;box-shadow:inset 0 0 10px #2c8af826}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner-circle:nth-of-type(0){transform:rotate(0)}.spinner-circle:nth-of-type(0) .spinner-inner{animation:spinner 2s infinite linear}.spinner-circle:nth-of-type(1){transform:rotate(70deg)}.spinner-circle:nth-of-type(1) .spinner-inner{animation:spinner 2s infinite linear}.spinner-circle:nth-of-type(2){transform:rotate(140deg)}.spinner-circle:nth-of-type(2) .spinner-inner{animation:spinner 2s infinite linear}.loading{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0;bottom:0;right:0;background-color:#ffffffe6;box-shadow:inset 0 0 80px #0000001a;z-index:1000}.connections-devices-item{margin-right:20px;font-size:14px;color:#909399;border-radius:3px;cursor:pointer;transition:color .3s ease}.connections-devices-item.selected{color:#2c8af8}.connections-card{display:flex;flex:1;margin-top:10px;padding:0;overflow:hidden}.connections-card .connections-th{display:inline-block;position:relative;text-align:center;color:#909399;background:#f3f6f9;height:30px;line-height:30px;font-weight:500;font-size:14px;cursor:pointer;user-select:none;-webkit-user-select:none}.connections-card .connections-th.resizing .connections-resizer{opacity:1;cursor:col-resize}.connections-card .connections-th.fixed{position:sticky!important;left:-.1px;z-index:99}.connections-card .connections-th.fixed.shadow{box-shadow:inset -9px 0 8px -14px #000}.connections-card .connections-resizer{position:absolute;opacity:0;right:-10px;top:8px;bottom:8px;width:20px;transition:opacity .3s ease;z-index:10;font-size:14px;font-weight:300;touch-action:none;cursor:col-resize}.connections-card .connections-resizer:before{content:"";display:block;position:absolute;left:10px;transform:translate(-1px);width:2px;height:100%;background-color:#90939999}.connections-card .connections-header{position:sticky;top:0;z-index:999;white-space:nowrap}.connections-card .connections-header:hover .connections-resizer{opacity:1}.connections-card .connections-block{display:inline-block;font-size:14px;line-height:36px;padding:0 10px;color:#54759a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connections-card .connections-block.completed{background-color:#e9eef4;color:#54759a80}.connections-card .connections-block.fixed{position:sticky;left:0;z-index:998;background-color:#fff}.connections-card .connections-block.fixed.shadow{box-shadow:inset -9px 0 8px -14px #000}.connections-filter{color:#2c8af8;font-size:14px;line-height:20px;margin-left:15px;text-shadow:0 0 6px rgba(44,138,248,.4);cursor:pointer}.connections-filter.dangerous{color:#f56c6c;text-shadow:0 0 6px rgba(87,190,252,.2)}.external-controller .alert{margin:10px 0}@media (max-width: 768px){.external-controller .alert{display:none}}.logs-panel{display:flex;flex-direction:column;flex-grow:1;flex-basis:0;list-style:none;padding:10px;border-radius:2px;background-color:#f3f6f9;font-size:12px;color:#73808f;overflow-y:auto;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}.proxy-item{position:relative;width:100%;height:110px;padding:10px;border-radius:4px;background:#fff;user-select:none;cursor:default;box-shadow:2px 5px 20px -3px #2c8af833;transition:all .3s ease}.proxy-item .proxy-type{padding:2px 5px;font-size:10px;color:#fff;border-radius:2px}.proxy-item .proxy-name{display:-webkit-box;margin-top:10px;color:#54759a;font-size:10px;overflow:hidden;word-break:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical}.proxy-item .proxy-delay{position:absolute;left:10px;bottom:13px;font-size:10px;color:#54759acc}.proxy-item .proxy-editor{position:absolute;right:10px;bottom:10px;cursor:pointer;color:#54759acc;opacity:0;pointer-events:none;transition:all .3s ease}.proxy-item:hover{box-shadow:0 14px 20px -4px #54759a66}.proxy-item:hover .proxy-editor{opacity:1;pointer-events:visible}.proxy-error{opacity:.5}.proxy-error .proxy-type{background-color:#909399}@media (max-width: 768px){.proxy-item{height:70px}.proxy-item .proxy-delay{left:unset;bottom:unset;top:0;right:20px;height:70px;line-height:70px}}.proxy-group{display:flex;align-items:flex-start;font-size:14px;color:#546b87}@media (max-width: 768px){.proxy-group{flex-direction:column}}.proxy-provider{position:relative;display:flex;flex-direction:column;font-size:16px;padding:20px;color:#546b87}.proxy-provider-item{box-shadow:0 0 24px #2c8af833}.proxy-provider-item:hover{box-shadow:0 0 24px #54759a66}.proxies-list{--item-width: calc(100% / (var(--columns) + 1));--gap: calc(var(--item-width) / var(--columns));display:flex;margin-right:calc(-1 * var(--gap));margin-top:20px;flex-wrap:wrap;align-content:flex-start;list-style:none}@media (min-width: 2001px){.proxies-list{--columns: 12}}@media (max-width: 2000px){.proxies-list{--columns: 10}}@media (max-width: 1600px){.proxies-list{--columns: 8}}@media (max-width: 1340px){.proxies-list{--columns: 7}}@media (max-width: 960px){.proxies-list{--columns: 6}}@media (max-width: 860px){.proxies-list{--columns: 5}}@media (max-width: 760px){.proxies-list{--columns: 3}}.proxies-list>li{display:inline-block;width:var(--item-width);margin-right:var(--gap);flex-shrink:0;margin-bottom:10px}.proxies-speed-test{line-height:32px;margin:0 2px 0 6px;color:#2c8af8;text-shadow:0 2px 6px rgba(44,138,248,.4);cursor:pointer}@media (max-width: 768px){.proxies-list{margin-right:0;padding-bottom:20px;flex-wrap:unset;flex-direction:column}.proxies-list>li{width:100%;margin-right:0;margin-bottom:10px}}.rule-provider{position:relative;display:flex;flex-direction:column;font-size:16px;padding:20px;color:#546b87}.rule-provider-header{display:flex;align-items:center;justify-content:space-between}.rule-provider-header-part{display:flex;align-items:center}.rule-provider-name{width:120px;margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rule-provider-behavior{width:80px;margin:0 20px 0 12px;background-color:#2c8af8;color:#fff}.rule-provider-spinner{transform:scale(.4)}.rule-provider-proxies{list-style:none}.rule-provider-item{box-shadow:0 0 24px #2c8af833}.rule-provider-item:hover{box-shadow:0 0 24px #54759a66}.rule-provider-update{line-height:14px;font-size:14px}.rule-provider-icon{display:block;margin-left:20px;cursor:pointer}.rule-provider-icon.rule-provider-loading:before{color:#909399;cursor:not-allowed;animation:spinner 2s infinite linear}@media (max-width: 768px){.rule-provider-header{flex-direction:column;align-items:flex-start}.rule-provider-header-part{margin:6px 0}}.rule-item{line-height:30px;padding:5px 0;height:50px;overflow:hidden;list-style:none;user-select:none;border-bottom:1px solid rgba(228,234,239,.5)}.rule-item .drag-handler{cursor:row-resize;margin:0 10px;display:flex;justify-content:center}.rule-item .drag-handler>i{font-weight:700;color:#b7c5d6}.rule-item .rule-type{font-size:14px;color:#54759a}.rule-item .rule-type>i{margin-left:5px;color:#54759a}.rule-item .payload{font-size:14px;color:#54759a;cursor:pointer}.rule-item .rule-proxy{font-size:14px;color:#54759a}.rule-item .delete-btn{opacity:0;transition:all .3s ease}.rule-item .delete-btn span{font-size:14px;color:#f56c6c;cursor:pointer}.rule-item:last-child{border-bottom:none}.rule-item:hover .delete-btn{opacity:1}.settings-card{margin-top:10px;padding:.75rem 0}.settings-card .label{font-size:14px;color:#54759a}.settings-card .external-controller{font-size:14px;color:#54759a;display:flex;justify-content:flex-end;font-weight:400;line-height:17px}.settings-card .external-controller.modify-btn{color:#57befc;cursor:pointer}.clash-version{position:relative;margin-top:10px;padding:20px 45px;display:flex}.clash-version .check-icon{width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#57befc,#2c8af8);display:flex;justify-content:center;align-items:center}.clash-version .check-icon>i{transform:scale(.5);color:#fff;font-weight:700}.clash-version .version-info{margin-left:10px;font-size:14px;line-height:24px;color:#54759a}.clash-version .check-update-btn{position:absolute;right:45px;font-size:14px;line-height:24px;color:#b7c5d6;cursor:pointer;transition:all .15s ease}.clash-version .check-update-btn:hover{color:#54759a}.sidebar{position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:160px;user-select:none}.sidebar-logo{margin-top:50px;width:60px;height:60px}.sidebar-menu{display:flex;flex-direction:column;flex:1;margin-top:12px}.sidebar-menu .item{display:block;margin-top:18px}.sidebar-menu .item>a{display:block;width:120px;height:36px;line-height:36px;font-size:14px;border-radius:18px;text-align:center}.sidebar-menu .item>a,.sidebar-menu .item a:active,.sidebar-menu .item a:visited{color:#909399;text-decoration:none}.sidebar-menu .item>a.active{background:linear-gradient(135deg,#57befc,#2c8af8);color:#fff;box-shadow:0 2px 8px #2c8af880}.sidebar-version{display:flex;flex-direction:column;align-items:center;padding-bottom:20px}.sidebar-version-label{font-size:14px;color:#2c8af8;text-shadow:0 2px 6px rgba(44,138,248,.4)}.sidebar-version-text{text-align:center;font-size:14px;margin:8px 0;padding:0 10px;color:#54759a}@media (max-width: 768px){.sidebar{width:100%;height:60px;flex-direction:row;background:#f4f5f6;z-index:10}.sidebar-logo{margin:0 15px;width:36px;height:36px}.sidebar-menu{flex:1;flex-direction:row;justify-content:center;margin-top:0;overflow-x:scroll;padding:10px}.sidebar-menu::-webkit-scrollbar{display:none}.sidebar-menu .item{margin:0 3px}.sidebar-menu .item>a{width:80px;height:32px;line-height:32px}.sidebar-menu .item.no-mobile,.sidebar-version{display:none}}html{box-sizing:border-box;background:rgba(255,255,255,.8);overflow:hidden}*,*:before,*:after{margin:0;padding:0;box-sizing:inherit}body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}body ::-webkit-scrollbar{z-index:11;background:transparent}body ::-webkit-scrollbar-thumb{border-radius:5px;background:#2c8af8}body ::-webkit-scrollbar:vertical{width:6px}body ::-webkit-scrollbar:horizontal{height:6px}.app{min-height:100vh;padding-left:150px}.app.not-clashx{background:#f4f5f6}.page-container{width:100%;height:100vh;padding-left:10px;overflow-y:scroll}.page{padding:20px 35px 30px 20px;width:100%;min-height:100vh;margin:0 auto;display:flex;flex-direction:column}.container{margin:20px 0}input{-webkit-appearance:none}@media (max-width: 768px){.app{padding-left:0;padding-top:60px}.page-container{width:100%;padding:0 10px;height:calc(100vh - 60px);-webkit-overflow-scrolling:touch}.page-container::-webkit-scrollbar{display:none}.page{padding:0 0 20px;height:100%;min-height:unset}}@font-face{font-family:clash-iconfont;src:url(//at.alicdn.com/t/font_841708_ok9czskbhel.ttf?t=1576162884356) format("truetype")}.clash-iconfont{font-family:clash-iconfont!important;font-size:14px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c8af8}.icon-update:before{content:"\e66f"}.icon-healthcheck:before{content:"\e63c"}.icon-speed:before{content:"\e61b"}.icon-close:before{content:"\e602"}.icon-drag:before{content:"\e604"}.icon-down-arrow-o:before{content:"\e605"}.icon-check:before{content:"\e606"}.icon-plus:before{content:"\e607"}.icon-triangle-up:before{content:"\e608"}.icon-triangle-down:before{content:"\e609"}.icon-up-arrow-o:before{content:"\e60a"}.icon-info:before{content:"\e60b"}.icon-info-o:before{content:"\e60c"}.icon-setting:before{content:"\e60d"}.icon-show:before{content:"\e60e"}.icon-hide:before{content:"\e60f"}.icon-sort:before{content:"\e8b3"}.icon-sort-descending:before{content:"\e8b4"}.icon-sort-ascending:before{content:"\e8b5"}.icon-close-all:before{content:"\e71b"}*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}*{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}::moz-focus-inner{border-style:none;padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}body{margin:0;font-family:inherit;line-height:inherit}button,input{font-family:inherit;font-size:100%;line-height:1.15;margin:0;padding:0;line-height:inherit;color:inherit}button{text-transform:none;background-color:transparent;background-image:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button,[role=button]{cursor:pointer}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1{font-size:inherit;font-weight:inherit}img{border-style:solid;display:block;vertical-align:middle;max-width:100%;height:auto}input::placeholder{opacity:1;color:#9ca3af}input::webkit-input-placeholder{opacity:1;color:#9ca3af}input::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder{opacity:1;color:#9ca3af}input::-ms-input-placeholder{opacity:1;color:#9ca3af}p,h1{margin:0}table{text-indent:0;border-color:inherit;border-collapse:collapse}ul{list-style:none;margin:0;padding:0}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgba(209,213,219,var(--tw-divide-opacity))}.rounded{border-radius:.25rem}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.inline-block{display:inline-block}.flex{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.table{display:table}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.items-start{-webkit-box-align:start;-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start}.items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.justify-end{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.flex-auto{-webkit-box-flex:1;-ms-flex:1 1 auto;-webkit-flex:1 1 auto;flex:1 1 auto}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;-webkit-flex:1 1 0%;flex:1 1 0%}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-bold{font-weight:700}.h-full{height:100%}.h-7{height:1.75rem}.h-8{height:2rem}.h-10{height:2.5rem}.h-6{height:1.5rem}.\!h-100vh{height:100vh!important}.text-sm{font-size:.875rem;line-height:1.25rem}.leading-7{line-height:1.75rem}.leading-5{line-height:1.25rem}.list-none{list-style-type:none}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2\.5{margin-top:.625rem;margin-bottom:.625rem}.mb-2{margin-bottom:.5rem}.mt-3{margin-top:.75rem}.mt-2\.5{margin-top:.625rem}.mr-4{margin-right:1rem}.mt-4{margin-top:1rem}.mr-5{margin-right:1.25rem}.ml-5{margin-left:1.25rem}.mr-6{margin-right:1.5rem}.ml-3{margin-left:.75rem}.not-first\:mt-7\.5:not(:first-child){margin-top:1.875rem}.min-h-full{min-height:100%}.min-h-120{min-height:30rem}.min-w-full{min-width:100%}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-hidden{overflow-y:hidden}.p-0{padding:0}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-8{padding-left:2rem;padding-right:2rem}.pt-2{padding-top:.5rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.pt-3{padding-top:.75rem}.pl-5{padding-left:1.25rem}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.right-0{right:0px}.focus\:shadow-none:focus{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-primary{--tw-shadow: 2px 5px 20px -3px rgb(44 138 248 / 18%);--tw-shadow-colored: 2px 5px 20px -3px rgb(44 138 248 / 18%);-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.text-center{text-align:center}.text-green{--tw-text-opacity: 1;color:rgba(103,194,58,var(--tw-text-opacity))}.text-red{--tw-text-opacity: 1;color:rgba(245,108,108,var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgba(156,163,175,var(--tw-text-opacity))}.text-primary-600{--tw-text-opacity: 1;color:rgba(44,138,248,var(--tw-text-opacity))}.text-opacity-90{--tw-text-opacity: .9}.overflow-ellipsis{-o-text-overflow:ellipsis;text-overflow:ellipsis}.text-shadow-primary{text-shadow:0 0 6px rgb(44 138 248 / 40%)}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.\!visible{visibility:visible!important}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.w-20{width:5rem}.w-14{width:3.5rem}.w-full{width:100%}.w-40{width:10rem}.w-28{width:7rem}.w-1\/2{width:50%}.w-35{width:8.75rem}.z-9999{z-index:9999}.transform{--tw-translate-x: 0;--tw-translate-y: 0;--tw-translate-z: 0;--tw-rotate: 0;--tw-rotate-x: 0;--tw-rotate-y: 0;--tw-rotate-z: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-scale-z: 1;-webkit-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));-ms-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));transform:translate(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotate(var(--tw-rotate-z)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z))}.translate-x-full{--tw-translate-x: 100%}.translate-x-0{--tw-translate-x: 0px}.transition-transform{-webkit-transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);-o-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}.duration-100{-webkit-transition-duration:.1s;-o-transition-duration:.1s;transition-duration:.1s}.duration{-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}.filter{--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 768px){.md\:flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row}.md\:items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.md\:h-15{height:3.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:my-3{margin-top:.75rem;margin-bottom:.75rem}.md\:my-4{margin-top:1rem;margin-bottom:1rem}.md\:mt-4{margin-top:1rem}.md\:mt-0{margin-top:0}.md\:mr-0{margin-right:0}.md\:ml-8{margin-left:2rem}.md\:py-4{padding-top:1rem;padding-bottom:1rem}.md\:pt-0{padding-top:0}.md\:w-auto{width:auto}.md\:w-1\/2{width:50%}.md\:w-30{width:7.5rem}}
--- /dev/null
+++ b/applications/luci-app-openclash/root/usr/share/openclash/dashboard/assets/index.e71ce3d7.css
@@ -0,0 +1 @@
1+.header{margin:10px 0;width:100%;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.header>h1{flex-shrink:0;font-size:24px;color:#2c8af8;font-weight:500;text-shadow:0 2px 6px rgba(44,138,248,.4);line-height:32px}.switch{display:inline-block;width:32px;height:16px;border-radius:8px;background-color:#d8dee2;transition:background-color .3s ease;position:relative;cursor:pointer}.switch.checked{background-color:#57befc}.switch.checked:after{transform:translate(16px)}.switch.disabled{cursor:not-allowed;background-color:#b7c5d6}.switch.disabled:after{background-color:#e4eaef;box-shadow:0 0 8px #90939980}.switch.checked.disabled{background-color:#e4eaef}.switch:after{content:"";position:absolute;top:-1px;height:18px;width:18px;border-radius:9px;background-color:#fff;box-shadow:0 0 8px #2c8af866;transition:transform .3s ease;transform:translate(-2px)}.switch-icon{position:absolute;transform:translate(-1px) scale(.4);color:#fff;line-height:16px}.card{padding:15px;box-shadow:2px 5px 20px -3px #2c8af82e;background-color:#fff;border-radius:4px}.button-select{display:flex;flex-direction:row}.button-select .button-select-options{height:30px;padding:0 15px;color:#54759a;font-size:12px;line-height:30px;background:#fff;border:1px solid #e4eaef;border-right:none;transition:all .3s ease;cursor:pointer;outline:0;display:block}.button-select .button-select-options:first-child{border-radius:3px 0 0 3px}.button-select .button-select-options:last-child{border-radius:0 3px 3px 0;border-right:1px solid #e4eaef}.button-select .button-select-options.actived{background:#57befc;color:#fff;border-color:#57befc;box-shadow:0 2px 5px #57befc80}.button-select .button-select-options.actived:active{box-shadow:none}.tags{display:flex;flex:1;align-items:center;list-style:none;flex-wrap:wrap;box-sizing:content-box}.tags li{position:relative;display:flex;align-items:center;justify-content:center;border:1px solid #2c8af8;color:#54759a;height:22px;border-radius:11px;padding:0 6px;margin:3px 4px;font-size:10px}.tags li.error{color:#fff;background-color:#f56c6c;border-color:#f56c6c}.tags li.tags-selected.error{background:linear-gradient(135deg,#2c8af8,#f56c6c);border:none;height:24px;padding:0 7px}.tags .tags-selected{background-color:#2c8af8;color:#fff}.input{display:inline-block;height:30px;width:100%;padding:0 10px;font-size:14px;color:#54759a;border-radius:3px;border:1px solid #e4eaef;transition:all .3s;transition-property:border-color,color,box-shadow}.input:focus{outline:0;border-color:#57befc;color:#2c8af8;box-shadow:0 2px 5px #57befc80}.select{cursor:pointer;font-size:14px;line-height:30px;color:#54759a;display:flex;overflow:hidden}.select>i{margin-left:5px;color:#54759a}.select-list{position:absolute;max-width:170px;border-radius:4px;pointer-events:none;transition:all .2s ease}.select-list .list{opacity:0;max-height:300px;overflow:auto;background:#fff;padding:5px 0;transition:all .2s ease}.select-list .list>.option{color:#54759a;padding:10px 15px;font-size:14px;list-style:none;cursor:pointer}.select-list .list>.option:hover{background:rgba(228,234,239,.5)}.select-list .list>.selected{background:rgba(228,234,239,.5)}.select-list-show{pointer-events:visible;transform:scaleY(1);box-shadow:0 2px 5px #b7c5d680}.select-list-show .list{opacity:1;transform:scaleY(1)}.modal-mask{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.15);opacity:0;pointer-events:none;transition:all .5s ease;display:flex;justify-content:center;align-items:center;z-index:9999}.modal-mask .modal{margin-top:-50px;padding:20px 30px;background:#fff;box-shadow:0 2px 16px #54759a33;border-radius:4px;display:flex;flex-direction:column;transform:scale(0);transition:all .3s cubic-bezier(.32,.26,.71,1.29)}.modal-mask .modal .modal-title{margin:5px 0;width:100%;display:flex;align-items:center;justify-content:space-between;font-weight:700;font-size:18px;color:#2c8af8;text-shadow:0 2px 6px rgba(44,138,248,.4)}.modal-mask .modal .modal-body{margin:10px 0;font-size:14px;color:#54759a}.modal-mask .modal .footer{width:100%;margin:5px 0;display:flex;align-items:center;justify-content:flex-end}.modal-mask .modal .footer .button{margin-left:10px}.modal-mask .modal-small{width:400px}.modal-mask .modal-big{width:600px}.modal-show{opacity:1;pointer-events:visible}.modal-show .modal{transform:scale(1)}@media (max-width: 768px){.modal-mask .modal{margin-top:0;padding:18px 20px}.modal-mask .modal-small{width:280px}.modal-mask .modal-big{width:480px}}.alert{padding:15px;background:#fff;border-radius:4px;box-shadow:0 2px 8px #2c8af84d;font-size:13px;line-height:1.6;text-align:justify;display:flex}.alert .alert-icon{margin-right:10px;width:20px;height:20px;border-radius:50%;flex-shrink:0;display:flex;justify-content:center;align-items:center;background:#fff}.alert .alert-icon>i{transform:scale(.5);font-weight:700}.alert .alert-message{width:100%;color:#fff}.alert-box-success{background:linear-gradient(135deg,#5dae34,#67c23a);box-shadow:0 2px 8px #5dae344d}.alert-box-success .alert-icon>i{color:#67c23a}.alert-box-info{background:linear-gradient(135deg,#3eb4fc,#57befc);box-shadow:0 2px 8px #3eb4fc4d}.alert-box-info .alert-icon>i{color:#57befc}.alert-box-warning{background:linear-gradient(135deg,#e39725,#e6a23c);box-shadow:0 2px 8px #e397254d}.alert-box-warning .alert-icon>i{color:#e6a23c}.alert-box-error{background:linear-gradient(135deg,#f35454,#f56c6c);box-shadow:0 2px 8px #f354544d}.alert-box-error .alert-icon>i{color:#f56c6c}.alert-note-success{background:rgba(103,194,58,.05);border-radius:1px 4px 4px 1px;border-left:2px solid #67c23a;box-shadow:0 2px 8px #5dae344d}.alert-note-success .alert-icon{background:#67c23a}.alert-note-success .alert-icon>i{color:#fff}.alert-note-success .alert-message{color:#3d7323}.alert-note-info{background:rgba(87,190,252,.05);border-radius:1px 4px 4px 1px;border-left:2px solid #57befc;box-shadow:0 2px 8px #3eb4fc4d}.alert-note-info .alert-icon{background:#57befc}.alert-note-info .alert-icon>i{color:#fff}.alert-note-info .alert-message{color:#0493e9}.alert-note-warning{background:rgba(230,162,60,.05);border-radius:1px 4px 4px 1px;border-left:2px solid #e6a23c;box-shadow:0 2px 8px #e397254d}.alert-note-warning .alert-icon{background:#e6a23c}.alert-note-warning .alert-icon>i{color:#fff}.alert-note-warning .alert-message{color:#a76d15}.alert-note-error{background:rgba(245,108,108,.05);border-radius:1px 4px 4px 1px;border-left:2px solid #f56c6c;box-shadow:0 2px 8px #f354544d}.alert-note-error .alert-icon{background:#f56c6c}.alert-note-error .alert-icon>i{color:#fff}.alert-note-error .alert-message{color:#eb1010}.button{outline:0;padding:0 15px;height:32px;line-height:32px;border-radius:16px;font-size:14px;cursor:pointer;transition:all .15s ease}.button:focus{outline:none}.button-primary{color:#fff;border:none;background:linear-gradient(135deg,#57befc,#2c8af8);box-shadow:0 2px 8px #2c8af880}.button-primary:hover{border:none}.button-primary:active{box-shadow:0 0 2px #2c8af880}.button-normal{color:#909399;background:#fff;border:1px solid rgba(0,0,0,.1)}.button-normal:hover{border-color:#b7c5d6;color:#54759a}.button-normal:active{background:#fafafa;color:#54759a}.button-danger{color:#fff;border:none;background:linear-gradient(135deg,#f56c6c,#f23c3c);box-shadow:0 2px 8px #f23c3c80}.button-danger:hover{border:none}.button-danger:active{box-shadow:0 0 2px #f23c3c80}.button-success{color:#fff;border:none;background:linear-gradient(135deg,#67c23a,#5dae34);box-shadow:0 2px 8px #5dae3480}.button-success:hover{border:none}.button-success:active{box-shadow:0 0 2px #5dae3480}.button-warning{color:#fff;border:none;background:linear-gradient(135deg,#e6a23c,#e39725);box-shadow:0 2px 8px #e3972580}.button-warning:hover{border:none}.button-warning:active{box-shadow:0 0 2px #e3972580}.button.button-disabled{color:#b7c5d6;background:linear-gradient(135deg,#f3f6f9,#e2e9f1);box-shadow:0 2px 8px #e2e9f180;cursor:not-allowed}.button.button-disabled:active{box-shadow:0 0 2px #e2e9f180}.message{position:fixed;top:20px;right:20px;border-radius:4px;opacity:0;background:#fff;display:flex;box-shadow:0 0 20px #2c8af833;transition:all .2s ease;transform:translate(100%)}.message .message-icon{width:36px;flex:1;border-radius:4px 0 0 4px;display:flex;justify-content:center;align-items:center}.message .message-icon>i{color:#fff}.message .message-content{padding:10px 15px;font-size:13px;color:#54759a}.message-info .message-icon{background:linear-gradient(135deg,#57befc,#2c8af8)}.message-success .message-icon{background:linear-gradient(135deg,#67c23a,#5dae34)}.message-warning .message-icon{background:linear-gradient(135deg,#e6a23c,#e39725)}.message-error .message-icon{background:linear-gradient(135deg,#f56c6c,#f23c3c)}.message-show{opacity:1;transition:all .2s ease;transform:translate(0)}.checkbox{display:flex;position:relative;padding-left:26px;cursor:pointer;line-height:18px}.checkbox:before{content:"";display:inline-block;position:absolute;left:0;top:50%;width:18px;height:18px;border-radius:3px;transition:background-color .3s ease;transform:translateY(-9px);background-color:#fff;border:1px solid #e4eaef}.checkbox.checked:before{background-color:#57befc}.checkbox-icon{position:absolute;left:0;top:50%;line-height:18px;transform:translateY(-9px) scale(.6);text-shadow:none;font-weight:700}.checkbox-icon.checkbox-icon{color:#fff}.tag{display:flex;align-items:center;justify-content:center;height:24px;font-size:12px;padding:0 12px;text-align:center;background-color:#fff;border:2px solid #2c8af8;color:#2c8af8;border-radius:12px}.spinner{position:relative;width:80px;height:80px;border-radius:100%;animation:spinner 5s infinite linear}.spinner-circle{position:absolute;width:100%;height:100%;transform-origin:48% 48%}.spinner-inner{width:100%;height:100%;border-radius:100%;border:5px solid rgba(44,138,248,.7);border-right:none;border-top:none;background-clip:padding-box;box-shadow:inset 0 0 10px #2c8af826}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner-circle:nth-of-type(0){transform:rotate(0)}.spinner-circle:nth-of-type(0) .spinner-inner{animation:spinner 2s infinite linear}.spinner-circle:nth-of-type(1){transform:rotate(70deg)}.spinner-circle:nth-of-type(1) .spinner-inner{animation:spinner 2s infinite linear}.spinner-circle:nth-of-type(2){transform:rotate(140deg)}.spinner-circle:nth-of-type(2) .spinner-inner{animation:spinner 2s infinite linear}.loading{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0;bottom:0;right:0;background-color:#ffffffe6;box-shadow:inset 0 0 80px #0000001a;z-index:1000}.connections-devices-item{margin-right:20px;font-size:14px;color:#909399;border-radius:3px;cursor:pointer;transition:color .3s ease}.connections-devices-item.selected{color:#2c8af8}.connections-card{display:flex;flex:1;margin-top:10px;padding:0;overflow:hidden}.connections-card .connections-th{display:inline-block;position:relative;text-align:center;color:#909399;background:#f3f6f9;height:30px;line-height:30px;font-weight:500;font-size:14px;cursor:pointer;user-select:none;-webkit-user-select:none}.connections-card .connections-th.resizing .connections-resizer{opacity:1;cursor:col-resize}.connections-card .connections-th.fixed{position:sticky!important;left:-.1px;z-index:99}.connections-card .connections-th.fixed.shadow{box-shadow:inset -9px 0 8px -14px #000}.connections-card .connections-resizer{position:absolute;opacity:0;right:-10px;top:8px;bottom:8px;width:20px;transition:opacity .3s ease;z-index:10;font-size:14px;font-weight:300;touch-action:none;cursor:col-resize}.connections-card .connections-resizer:before{content:"";display:block;position:absolute;left:10px;transform:translate(-1px);width:2px;height:100%;background-color:#90939999}.connections-card .connections-header{position:sticky;top:0;z-index:999;white-space:nowrap}.connections-card .connections-header:hover .connections-resizer{opacity:1}.connections-card .connections-block{display:inline-block;font-size:14px;line-height:36px;padding:0 10px;color:#54759a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.connections-card .connections-block.completed{background-color:#e9eef4;color:#54759a80}.connections-card .connections-block.fixed{position:sticky;left:0;z-index:998;background-color:#fff}.connections-card .connections-block.fixed.shadow{box-shadow:inset -9px 0 8px -14px #000}.connections-filter{color:#2c8af8;font-size:14px;line-height:20px;margin-left:15px;text-shadow:0 0 6px rgba(44,138,248,.4);cursor:pointer}.connections-filter.dangerous{color:#f56c6c;text-shadow:0 0 6px rgba(87,190,252,.2)}.external-controller .alert{margin:10px 0}@media (max-width: 768px){.external-controller .alert{display:none}}.logs-panel{display:flex;flex-direction:column;flex-grow:1;flex-basis:0;list-style:none;padding:10px;border-radius:2px;background-color:#f3f6f9;font-size:12px;color:#73808f;overflow-y:auto;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}.proxy-item{position:relative;width:100%;height:110px;padding:10px;border-radius:4px;background:#fff;user-select:none;cursor:default;box-shadow:2px 5px 20px -3px #2c8af833;transition:all .3s ease}.proxy-item .proxy-type{padding:2px 5px;font-size:10px;color:#fff;border-radius:2px}.proxy-item .proxy-name{display:-webkit-box;margin-top:10px;color:#54759a;font-size:10px;overflow:hidden;word-break:break-word;-webkit-line-clamp:2;-webkit-box-orient:vertical}.proxy-item .proxy-delay{position:absolute;left:10px;bottom:13px;font-size:10px;color:#54759acc}.proxy-item .proxy-editor{position:absolute;right:10px;bottom:10px;cursor:pointer;color:#54759acc;opacity:0;pointer-events:none;transition:all .3s ease}.proxy-item:hover{box-shadow:0 14px 20px -4px #54759a66}.proxy-item:hover .proxy-editor{opacity:1;pointer-events:visible}.proxy-error{opacity:.5}.proxy-error .proxy-type{background-color:#909399}@media (max-width: 768px){.proxy-item{height:70px}.proxy-item .proxy-delay{left:unset;bottom:unset;top:0;right:20px;height:70px;line-height:70px}}.proxy-group{display:flex;align-items:flex-start;font-size:14px;color:#546b87}@media (max-width: 768px){.proxy-group{flex-direction:column}}.proxy-provider{position:relative;display:flex;flex-direction:column;font-size:16px;padding:20px;color:#546b87}.proxy-provider-item{box-shadow:0 0 24px #2c8af833}.proxy-provider-item:hover{box-shadow:0 0 24px #54759a66}.proxies-list{--item-width: calc(100% / (var(--columns) + 1));--gap: calc(var(--item-width) / var(--columns));display:flex;margin-right:calc(-1 * var(--gap));margin-top:20px;flex-wrap:wrap;align-content:flex-start;list-style:none}@media (min-width: 2001px){.proxies-list{--columns: 12}}@media (max-width: 2000px){.proxies-list{--columns: 10}}@media (max-width: 1600px){.proxies-list{--columns: 8}}@media (max-width: 1340px){.proxies-list{--columns: 7}}@media (max-width: 960px){.proxies-list{--columns: 6}}@media (max-width: 860px){.proxies-list{--columns: 5}}@media (max-width: 760px){.proxies-list{--columns: 3}}.proxies-list>li{display:inline-block;width:var(--item-width);margin-right:var(--gap);flex-shrink:0;margin-bottom:10px}.proxies-speed-test{line-height:32px;margin:0 2px 0 6px;color:#2c8af8;text-shadow:0 2px 6px rgba(44,138,248,.4);cursor:pointer}@media (max-width: 768px){.proxies-list{margin-right:0;padding-bottom:20px;flex-wrap:unset;flex-direction:column}.proxies-list>li{width:100%;margin-right:0;margin-bottom:10px}}.rule-provider{position:relative;display:flex;flex-direction:column;font-size:16px;padding:20px;color:#546b87}.rule-provider-header{display:flex;align-items:center;justify-content:space-between}.rule-provider-header-part{display:flex;align-items:center}.rule-provider-name{width:120px;margin-right:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rule-provider-behavior{width:80px;margin:0 20px 0 12px;background-color:#2c8af8;color:#fff}.rule-provider-spinner{transform:scale(.4)}.rule-provider-proxies{list-style:none}.rule-provider-item{box-shadow:0 0 24px #2c8af833}.rule-provider-item:hover{box-shadow:0 0 24px #54759a66}.rule-provider-update{line-height:14px;font-size:14px}.rule-provider-icon{display:block;margin-left:20px;cursor:pointer}.rule-provider-icon.rule-provider-loading:before{color:#909399;cursor:not-allowed;animation:spinner 2s infinite linear}@media (max-width: 768px){.rule-provider-header{flex-direction:column;align-items:flex-start}.rule-provider-header-part{margin:6px 0}}.rule-item{line-height:30px;padding:5px 0;height:50px;overflow:hidden;list-style:none;user-select:none;border-bottom:1px solid rgba(228,234,239,.5)}.rule-item .drag-handler{cursor:row-resize;margin:0 10px;display:flex;justify-content:center}.rule-item .drag-handler>i{font-weight:700;color:#b7c5d6}.rule-item .rule-type{font-size:14px;color:#54759a}.rule-item .rule-type>i{margin-left:5px;color:#54759a}.rule-item .payload{font-size:14px;color:#54759a;cursor:pointer}.rule-item .rule-proxy{font-size:14px;color:#54759a}.rule-item .delete-btn{opacity:0;transition:all .3s ease}.rule-item .delete-btn span{font-size:14px;color:#f56c6c;cursor:pointer}.rule-item:last-child{border-bottom:none}.rule-item:hover .delete-btn{opacity:1}.settings-card{margin-top:10px;padding:.75rem 0}.settings-card .label{font-size:14px;color:#54759a}.settings-card .external-controller{font-size:14px;color:#54759a;display:flex;justify-content:flex-end;font-weight:400;line-height:17px}.settings-card .external-controller.modify-btn{color:#57befc;cursor:pointer}.clash-version{position:relative;margin-top:10px;padding:20px 45px;display:flex}.clash-version .check-icon{width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#57befc,#2c8af8);display:flex;justify-content:center;align-items:center}.clash-version .check-icon>i{transform:scale(.5);color:#fff;font-weight:700}.clash-version .version-info{margin-left:10px;font-size:14px;line-height:24px;color:#54759a}.clash-version .check-update-btn{position:absolute;right:45px;font-size:14px;line-height:24px;color:#b7c5d6;cursor:pointer;transition:all .15s ease}.clash-version .check-update-btn:hover{color:#54759a}.sidebar{position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;flex-shrink:0;width:160px;user-select:none}.sidebar-logo{margin-top:50px;width:60px;height:60px}.sidebar-menu{display:flex;flex-direction:column;flex:1;margin-top:12px}.sidebar-menu .item{display:block;margin-top:18px}.sidebar-menu .item>a{display:block;width:120px;height:36px;line-height:36px;font-size:14px;border-radius:18px;text-align:center}.sidebar-menu .item>a,.sidebar-menu .item a:active,.sidebar-menu .item a:visited{color:#909399;text-decoration:none}.sidebar-menu .item>a.active{background:linear-gradient(135deg,#57befc,#2c8af8);color:#fff;box-shadow:0 2px 8px #2c8af880}.sidebar-version{display:flex;flex-direction:column;align-items:center;padding-bottom:20px}.sidebar-version-label{font-size:14px;color:#2c8af8;text-shadow:0 2px 6px rgba(44,138,248,.4)}.sidebar-version-text{text-align:center;font-size:14px;margin:8px 0;padding:0 10px;color:#54759a}@media (max-width: 768px){.sidebar{width:100%;height:60px;flex-direction:row;background:#f4f5f6;z-index:10}.sidebar-logo{margin:0 15px;width:36px;height:36px}.sidebar-menu{flex:1;flex-direction:row;justify-content:center;margin-top:0;overflow-x:scroll;padding:10px}.sidebar-menu::-webkit-scrollbar{display:none}.sidebar-menu .item{margin:0 3px}.sidebar-menu .item>a{width:80px;height:32px;line-height:32px}.sidebar-menu .item.no-mobile,.sidebar-version{display:none}}html{box-sizing:border-box;background:rgba(255,255,255,.8);overflow:hidden}*,*:before,*:after{margin:0;padding:0;box-sizing:inherit}body{margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol}body ::-webkit-scrollbar{z-index:11;background:transparent}body ::-webkit-scrollbar-thumb{border-radius:5px;background:#2c8af8}body ::-webkit-scrollbar:vertical{width:6px}body ::-webkit-scrollbar:horizontal{height:6px}.app{min-height:100vh;padding-left:150px}.app.not-clashx{background:#f4f5f6}.page-container{width:100%;height:100vh;padding-left:10px;overflow-y:scroll}.page{padding:20px 35px 30px 20px;width:100%;min-height:100vh;margin:0 auto;display:flex;flex-direction:column}.container{margin:20px 0}input{-webkit-appearance:none}@media (max-width: 768px){.app{padding-left:0;padding-top:60px}.page-container{width:100%;padding:0 10px;height:calc(100vh - 60px);-webkit-overflow-scrolling:touch}.page-container::-webkit-scrollbar{display:none}.page{padding:0 0 20px;height:100%;min-height:unset}}@font-face{font-family:clash-iconfont;src:url(//at.alicdn.com/t/font_841708_ok9czskbhel.ttf?t=1576162884356) format("truetype")}.clash-iconfont{font-family:clash-iconfont!important;font-size:14px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c8af8}.icon-update:before{content:"\e66f"}.icon-healthcheck:before{content:"\e63c"}.icon-speed:before{content:"\e61b"}.icon-close:before{content:"\e602"}.icon-drag:before{content:"\e604"}.icon-down-arrow-o:before{content:"\e605"}.icon-check:before{content:"\e606"}.icon-plus:before{content:"\e607"}.icon-triangle-up:before{content:"\e608"}.icon-triangle-down:before{content:"\e609"}.icon-up-arrow-o:before{content:"\e60a"}.icon-info:before{content:"\e60b"}.icon-info-o:before{content:"\e60c"}.icon-setting:before{content:"\e60d"}.icon-show:before{content:"\e60e"}.icon-hide:before{content:"\e60f"}.icon-sort:before{content:"\e8b3"}.icon-sort-descending:before{content:"\e8b4"}.icon-sort-ascending:before{content:"\e8b5"}.icon-close-all:before{content:"\e71b"}*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}*{--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}:-moz-focusring{outline:1px dotted ButtonText}:-moz-ui-invalid{box-shadow:none}::moz-focus-inner{border-style:none;padding:0}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}body{margin:0;font-family:inherit;line-height:inherit}button,input{font-family:inherit;font-size:100%;line-height:1.15;margin:0;padding:0;line-height:inherit;color:inherit}button{text-transform:none;background-color:transparent;background-image:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button,[role=button]{cursor:pointer}html{-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5}h1{font-size:inherit;font-weight:inherit}img{border-style:solid;display:block;vertical-align:middle;max-width:100%;height:auto}input::placeholder{opacity:1;color:#9ca3af}input::webkit-input-placeholder{opacity:1;color:#9ca3af}input::-moz-placeholder{opacity:1;color:#9ca3af}input:-ms-input-placeholder{opacity:1;color:#9ca3af}input::-ms-input-placeholder{opacity:1;color:#9ca3af}p,h1{margin:0}table{text-indent:0;border-color:inherit;border-collapse:collapse}ul{list-style:none;margin:0;padding:0}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgba(209,213,219,var(--tw-divide-opacity))}.rounded{border-radius:.25rem}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.inline-block{display:inline-block}.flex{display:-webkit-box;display:-ms-flexbox;display:-webkit-flex;display:flex}.table{display:table}.hidden{display:none}.flex-col{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;-webkit-flex-direction:column;flex-direction:column}.flex-wrap{-ms-flex-wrap:wrap;-webkit-flex-wrap:wrap;flex-wrap:wrap}.items-start{-webkit-box-align:start;-ms-flex-align:start;-webkit-align-items:flex-start;align-items:flex-start}.items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.justify-end{-webkit-box-pack:end;-ms-flex-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.justify-between{-webkit-box-pack:justify;-ms-flex-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.flex-auto{-webkit-box-flex:1;-ms-flex:1 1 auto;-webkit-flex:1 1 auto;flex:1 1 auto}.flex-1{-webkit-box-flex:1;-ms-flex:1 1 0%;-webkit-flex:1 1 0%;flex:1 1 0%}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.font-bold{font-weight:700}.h-full{height:100%}.h-7{height:1.75rem}.h-8{height:2rem}.h-10{height:2.5rem}.h-6{height:1.5rem}.\!h-100vh{height:100vh!important}.text-sm{font-size:.875rem;line-height:1.25rem}.text-\[11px\]{font-size:11px;line-height:1}.leading-7{line-height:1.75rem}.leading-5{line-height:1.25rem}.list-none{list-style-type:none}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2\.5{margin-top:.625rem;margin-bottom:.625rem}.mb-2{margin-bottom:.5rem}.mt-3{margin-top:.75rem}.mr-2{margin-right:.5rem}.mt-2\.5{margin-top:.625rem}.mt-4{margin-top:1rem}.mr-5{margin-right:1.25rem}.ml-5{margin-left:1.25rem}.mr-6{margin-right:1.5rem}.ml-3{margin-left:.75rem}.not-first\:mt-7\.5:not(:first-child){margin-top:1.875rem}.min-h-full{min-height:100%}.min-h-120{min-height:30rem}.min-w-full{min-width:100%}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.p-0{padding:0}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-1{padding-left:.25rem;padding-right:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.px-8{padding-left:2rem;padding-right:2rem}.pt-2{padding-top:.5rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.pt-3{padding-top:.75rem}.pl-5{padding-left:1.25rem}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0px;right:0px;bottom:0px;left:0px}.right-0{right:0px}.focus\:shadow-none:focus{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-primary{--tw-shadow: 2px 5px 20px -3px rgb(44 138 248 / 18%);--tw-shadow-colored: 2px 5px 20px -3px rgb(44 138 248 / 18%);-webkit-box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.text-center{text-align:center}.text-green{--tw-text-opacity: 1;color:rgba(103,194,58,var(--tw-text-opacity))}.text-red{--tw-text-opacity: 1;color:rgba(245,108,108,var(--tw-text-opacity))}.text-teal-500{--tw-text-opacity: 1;color:rgba(20,184,166,var(--tw-text-opacity))}.text-sky-500{--tw-text-opacity: 1;color:rgba(14,165,233,var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgba(236,72,153,var(--tw-text-opacity))}.text-rose-500{--tw-text-opacity: 1;color:rgba(244,63,94,var(--tw-text-opacity))}.text-primary-darken{--tw-text-opacity: 1;color:rgba(84,117,154,var(--tw-text-opacity))}.text-orange-400{--tw-text-opacity: 1;color:rgba(251,146,60,var(--tw-text-opacity))}.text-primary-600{--tw-text-opacity: 1;color:rgba(44,138,248,var(--tw-text-opacity))}.overflow-ellipsis{-o-text-overflow:ellipsis;text-overflow:ellipsis}.text-shadow-primary{text-shadow:0 0 6px rgb(44 138 248 / 40%)}.capitalize{text-transform:capitalize}.select-none{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.visible{visibility:visible}.\!visible{visibility:visible!important}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.w-20{width:5rem}.w-14{width:3.5rem}.w-full{width:100%}.w-40{width:10rem}.w-28{width:7rem}.w-1\/2{width:50%}.w-35{width:8.75rem}.z-9999{z-index:9999}.transform{--tw-translate-x: 0;--tw-translate-y: 0;--tw-translate-z: 0;--tw-rotate: 0;--tw-rotate-x: 0;--tw-rotate-y: 0;--tw-rotate-z: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-scale-z: 1;-webkit-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));-ms-transform:translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotateZ(var(--tw-rotate-z)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z));transform:translate(var(--tw-translate-x)) translateY(var(--tw-translate-y)) translateZ(var(--tw-translate-z)) rotate(var(--tw-rotate)) rotateX(var(--tw-rotate-x)) rotateY(var(--tw-rotate-y)) rotate(var(--tw-rotate-z)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) scaleZ(var(--tw-scale-z))}.translate-x-full{--tw-translate-x: 100%}.translate-x-0{--tw-translate-x: 0px}.transition-transform{-webkit-transition-property:-webkit-transform;-o-transition-property:transform;transition-property:transform,-webkit-transform;-webkit-transition-timing-function:cubic-bezier(.4,0,.2,1);-o-transition-timing-function:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1);-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}.duration-100{-webkit-transition-duration:.1s;-o-transition-duration:.1s;transition-duration:.1s}.duration{-webkit-transition-duration:.15s;-o-transition-duration:.15s;transition-duration:.15s}.filter{--tw-blur: var(--tw-empty, );--tw-brightness: var(--tw-empty, );--tw-contrast: var(--tw-empty, );--tw-grayscale: var(--tw-empty, );--tw-hue-rotate: var(--tw-empty, );--tw-invert: var(--tw-empty, );--tw-saturate: var(--tw-empty, );--tw-sepia: var(--tw-empty, );--tw-drop-shadow: var(--tw-empty, );-webkit-filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}@media (min-width: 768px){.md\:flex-row{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;-webkit-flex-direction:row;flex-direction:row}.md\:items-center{-webkit-box-align:center;-ms-flex-align:center;-webkit-align-items:center;align-items:center}.md\:h-15{height:3.75rem}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}.md\:my-3{margin-top:.75rem;margin-bottom:.75rem}.md\:my-4{margin-top:1rem;margin-bottom:1rem}.md\:mt-4{margin-top:1rem}.md\:mt-0{margin-top:0}.md\:mr-0{margin-right:0}.md\:ml-8{margin-left:2rem}.md\:py-4{padding-top:1rem;padding-bottom:1rem}.md\:pt-0{padding-top:0}.md\:w-auto{width:auto}.md\:w-1\/2{width:50%}.md\:w-30{width:7.5rem}}
--- a/applications/luci-app-openclash/root/usr/share/openclash/dashboard/assets/index.ff31c246.js
+++ /dev/null
@@ -1,2 +0,0 @@
1-var Ze=Object.defineProperty,et=Object.defineProperties;var tt=Object.getOwnPropertyDescriptors;var Se=Object.getOwnPropertySymbols;var nt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable;var Fe=(n,t,s)=>t in n?Ze(n,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):n[t]=s,w=(n,t)=>{for(var s in t||(t={}))nt.call(t,s)&&Fe(n,s,t[s]);if(Se)for(var s of Se(t))st.call(t,s)&&Fe(n,s,t[s]);return n},A=(n,t)=>et(n,tt(t));import{R as e,c as g,f as ot,r as p,a as ne,E as Be,b as le,d as at,e as Y,g as ye,u as De,h as ge,i as B,j as Ie,k as xe,l as K,m as lt,n as Re,o as rt,p as ve,q as ct,s as it,t as ut,v as mt,w as dt,x as pt,y as ft,z as ht,A as Et,B as yt,F as gt,C as xt,N as vt,D as wt,G as Ae,H as Ct,I as bt,J as Nt}from"./vendor.2c5fdbe2.js";const Pt=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))o(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&o(r)}).observe(document,{childList:!0,subtree:!0});function s(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerpolicy&&(l.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?l.credentials="include":a.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(a){if(a.ep)return;a.ep=!0;const l=s(a);fetch(a.href,l)}};Pt();function ee(){return navigator.userAgent==="ClashX Runtime"}let b=null;class kt{constructor(t){this.instance=null,window.WebViewJavascriptBridge!=null&&(this.instance=window.WebViewJavascriptBridge),this.initBridge(s=>{this.instance=s,t()})}initBridge(t){if(!ee())return t==null?void 0:t(null);if(window.WebViewJavascriptBridge!=null)return t(window.WebViewJavascriptBridge);if(window.WVJBCallbacks!=null)return window.WVJBCallbacks.push(t);window.WVJBCallbacks=[t];const s=document.createElement("iframe");s.style.display="none",s.src="https://__bridge_loaded__",document.documentElement.appendChild(s),setTimeout(()=>document.documentElement.removeChild(s),0)}async callHandler(t,s){return await new Promise(o=>{var a;(a=this.instance)==null||a.callHandler(t,s,o)})}async ping(){return await this.callHandler("ping")}async readConfigString(){return await this.callHandler("readConfigString")}async getPasteboard(){return await this.callHandler("getPasteboard")}async getAPIInfo(){return await this.callHandler("apiInfo")}async setPasteboard(t){return await this.callHandler("setPasteboard",t)}async writeConfigWithString(t){return await this.callHandler("writeConfigWithString",t)}async setSystemProxy(t){return await this.callHandler("setSystemProxy",t)}async getStartAtLogin(){return await this.callHandler("getStartAtLogin")}async getProxyDelay(t){return await this.callHandler("speedTest",t)}async setStartAtLogin(t){return await this.callHandler("setStartAtLogin",t)}async isSystemProxySet(){return await this.callHandler("isSystemProxySet")}}function St(n){if(b!=null){n();return}b=new kt(n)}function J(n){const{title:t,children:s,className:o,style:a}=n;return e.createElement("header",{className:g("header",o),style:a},e.createElement("h1",{className:"md:text-xl"},t),e.createElement("div",{className:"flex flex-auto items-center justify-end"},s))}function U(n){const{type:t,size:s=14,className:o,style:a}=n,l=g("clash-iconfont",`icon-${t}`,o),r=w({fontSize:s},a),c=A(w({},n),{className:l,style:r});return e.createElement("i",w({},c))}function W(){}function Ft(n,t){const s=[],o=[];for(const a of n)t(a)?s.push(a):o.push(a);return[s,o]}function O(n){var o;const t=["B","KB","MB","GB","TB"],s=Math.floor(Math.log(n||1)/Math.log(1024));return`${ot(n/Math.pow(1024,s),2).toFixed(2)} ${(o=t==null?void 0:t[s])!=null?o:""}`}function Me(n){return n.replace(/.*[/\\]/,"")}function de(n){const{className:t,checked:s=!1,disabled:o=!1,onChange:a=W}=n,l=g("switch",{checked:s,disabled:o},t);function r(){o||a(!s)}return e.createElement("div",{className:l,onClick:r},e.createElement(U,{className:"switch-icon font-bold",type:"check",size:20}))}const z=p.exports.forwardRef((n,t)=>{const{className:s,style:o,children:a}=n;return e.createElement("div",{className:g("card",s),style:o,ref:t},a)});function $e(n){const{options:t,value:s,onSelect:o}=n;return e.createElement("div",{className:"button-select"},t.map(a=>e.createElement("button",{value:a.value,key:a.value,className:g("button-select-options",{actived:s===a.value}),onClick:()=>o==null?void 0:o(a.value)},a.label)))}const Dt={SideBar:{Proxies:"Proxies",Overview:"Overview",Logs:"Logs",Rules:"Rules",Settings:"Setting",Connections:"Connections",Version:"Version"},Settings:{title:"Settings",labels:{startAtLogin:"Start at login",language:"language",setAsSystemProxy:"Set as system proxy",allowConnectFromLan:"Allow connect from Lan",proxyMode:"Mode",socks5ProxyPort:"Socks5 proxy port",httpProxyPort:"HTTP proxy port",mixedProxyPort:"Mixed proxy port",externalController:"External controller"},values:{cn:"\u4E2D\u6587",en:"English",global:"Global",rules:"Rules",direct:"Direct",script:"Script"},versionString:"Current ClashX is the latest version\uFF1A{{version}}",checkUpdate:"Check Update",externalControllerSetting:{title:"External Controller",note:"Please note that modifying this configuration will only configure Dashboard. Will not modify your Clash configuration file. Please make sure that the external controller address matches the address in the Clash configuration file, otherwise, Dashboard will not be able to connect to Clash.",host:"Host",port:"Port",secret:"Secret"}},Logs:{title:"Logs"},Rules:{title:"Rules",providerTitle:"Providers",providerUpdateTime:"Last updated at",ruleCount:"Rule count"},Connections:{title:"Connections",keepClosed:"Keep closed connections",total:{text:"total",upload:"upload",download:"download"},closeAll:{title:"Warning",content:"This would close all connections"},filter:{all:"All"},columns:{host:"Host",network:"Network",type:"Type",chains:"Chains",process:"Process",rule:"Rule",time:"Time",speed:"Speed",upload:"Upload",download:"Download",sourceIP:"Source IP"},info:{title:"Connection",id:"ID",host:"Host",hostEmpty:"Empty",dstIP:"IP",dstIPEmpty:"Empty",srcIP:"Source",upload:"Upload",download:"Download",network:"Network",process:"Process",processPath:"Path",inbound:"Inbound",rule:"Rule",chains:"Chains",status:"Status",opening:"Open",closed:"Closed",closeConnection:"Close"}},Proxies:{title:"Proxies",editDialog:{title:"Edit Proxy",color:"Color",name:"Name",type:"Type",server:"Server",port:"Port",password:"Password",cipher:"Cipher",obfs:"Obfs","obfs-host":"Obfs-host",uuid:"UUID",alterId:"AlterId",tls:"TLS"},groupTitle:"Policy Group",providerTitle:"Providers",providerUpdateTime:"Last updated at",expandText:"Expand",collapseText:"Collapse",speedTestText:"Speed Test",breakConnectionsText:"Close connections which include the group"},Modal:{ok:"Ok",cancel:"Cancel"}},At={SideBar:{Proxies:"\u4EE3\u7406",Overview:"\u603B\u89C8",Logs:"\u65E5\u5FD7",Rules:"\u89C4\u5219",Settings:"\u8BBE\u7F6E",Connections:"\u8FDE\u63A5",Version:"\u7248\u672C"},Settings:{title:"\u8BBE\u7F6E",labels:{startAtLogin:"\u5F00\u673A\u65F6\u542F\u52A8",language:"\u8BED\u8A00",setAsSystemProxy:"\u8BBE\u7F6E\u4E3A\u7CFB\u7EDF\u4EE3\u7406",allowConnectFromLan:"\u5141\u8BB8\u6765\u81EA\u5C40\u57DF\u7F51\u7684\u8FDE\u63A5",proxyMode:"\u4EE3\u7406\u6A21\u5F0F",socks5ProxyPort:"Socks5 \u4EE3\u7406\u7AEF\u53E3",httpProxyPort:"HTTP \u4EE3\u7406\u7AEF\u53E3",mixedProxyPort:"\u6DF7\u5408\u4EE3\u7406\u7AEF\u53E3",externalController:"\u5916\u90E8\u63A7\u5236\u8BBE\u7F6E"},values:{cn:"\u4E2D\u6587",en:"English",global:"\u5168\u5C40",rules:"\u89C4\u5219",direct:"\u76F4\u8FDE",script:"\u811A\u672C"},versionString:"\u5F53\u524D ClashX \u5DF2\u662F\u6700\u65B0\u7248\u672C\uFF1A{{version}}",checkUpdate:"\u68C0\u67E5\u66F4\u65B0",externalControllerSetting:{title:"\u7F16\u8F91\u5916\u90E8\u63A7\u5236\u8BBE\u7F6E",note:"\u8BF7\u6CE8\u610F\uFF0C\u4FEE\u6539\u8BE5\u914D\u7F6E\u9879\u5E76\u4E0D\u4F1A\u4FEE\u6539\u4F60\u7684 Clash \u914D\u7F6E\u6587\u4EF6\uFF0C\u8BF7\u786E\u8BA4\u4FEE\u6539\u540E\u7684\u5916\u90E8\u63A7\u5236\u5730\u5740\u548C Clash \u914D\u7F6E\u6587\u4EF6\u5185\u7684\u5730\u5740\u4E00\u81F4\uFF0C\u5426\u5219\u4F1A\u5BFC\u81F4 Dashboard \u65E0\u6CD5\u8FDE\u63A5\u3002",host:"Host",port:"\u7AEF\u53E3",secret:"\u5BC6\u94A5"}},Logs:{title:"\u65E5\u5FD7"},Rules:{title:"\u89C4\u5219",providerTitle:"\u89C4\u5219\u96C6",providerUpdateTime:"\u6700\u540E\u66F4\u65B0\u4E8E",ruleCount:"\u89C4\u5219\u6761\u6570"},Connections:{title:"\u8FDE\u63A5",keepClosed:"\u4FDD\u7559\u5173\u95ED\u8FDE\u63A5",total:{text:"\u603B\u91CF",upload:"\u4E0A\u4F20",download:"\u4E0B\u8F7D"},closeAll:{title:"\u8B66\u544A",content:"\u5C06\u4F1A\u5173\u95ED\u6240\u6709\u8FDE\u63A5"},filter:{all:"\u5168\u90E8"},columns:{host:"\u57DF\u540D",network:"\u7F51\u7EDC",process:"\u8FDB\u7A0B",type:"\u7C7B\u578B",chains:"\u8282\u70B9\u94FE",rule:"\u89C4\u5219",time:"\u8FDE\u63A5\u65F6\u95F4",speed:"\u901F\u7387",upload:"\u4E0A\u4F20",download:"\u4E0B\u8F7D",sourceIP:"\u6765\u6E90 IP"},info:{title:"\u8FDE\u63A5\u4FE1\u606F",id:"ID",host:"\u57DF\u540D",hostEmpty:"\u7A7A",dstIP:"IP",dstIPEmpty:"\u7A7A",srcIP:"\u6765\u6E90",upload:"\u4E0A\u4F20",download:"\u4E0B\u8F7D",network:"\u7F51\u7EDC",process:"\u8FDB\u7A0B",processPath:"\u8DEF\u5F84",inbound:"\u5165\u53E3",rule:"\u89C4\u5219",chains:"\u4EE3\u7406",status:"\u72B6\u6001",opening:"\u8FDE\u63A5\u4E2D",closed:"\u5DF2\u5173\u95ED",closeConnection:"\u5173\u95ED\u8FDE\u63A5"}},Proxies:{title:"\u4EE3\u7406",editDialog:{title:"\u7F16\u8F91\u4EE3\u7406",color:"\u989C\u8272",name:"\u540D\u5B57",type:"\u7C7B\u578B",server:"\u670D\u52A1\u5668",port:"\u7AEF\u53E3",password:"\u5BC6\u7801",cipher:"\u52A0\u5BC6\u65B9\u5F0F",obfs:"Obfs","obfs-host":"Obfs-host",uuid:"UUID",alterId:"AlterId",tls:"TLS"},groupTitle:"\u7B56\u7565\u7EC4",providerTitle:"\u4EE3\u7406\u96C6",providerUpdateTime:"\u6700\u540E\u66F4\u65B0\u4E8E",expandText:"\u5C55\u5F00",collapseText:"\u6536\u8D77",speedTestText:"\u6D4B\u901F",breakConnectionsText:"\u5207\u6362\u65F6\u6253\u65AD\u5305\u542B\u7B56\u7565\u7EC4\u7684\u8FDE\u63A5"},Modal:{ok:"\u786E \u5B9A",cancel:"\u53D6 \u6D88"}},He={en_US:Dt,zh_CN:At},$t=Object.keys(He);function Lt(){for(const n of window.navigator.languages){if(n.includes("zh"))return"zh_CN";if(n.includes("us"))return"en_US"}return"en_US"}function we(n){return p.exports.useMemo(()=>{function s(o,a){if(typeof o=="string")n(l=>{const r=o,c=a;l[r]=c});else if(typeof o=="function"){const l=o;n(r=>l(r))}else typeof o=="object"&&n(l=>ne(l,r=>{const c=o;for(const m of Object.keys(c)){const f=m;r[f]=c[f]}}))}return s},[n])}class Oe{constructor(t){this.EE=new Be,this.innerBuffer=[],this.isClose=!1,this.config=Object.assign({bufferLength:0,retryInterval:5e3,headers:{}},t),this.config.useWebsocket?this.websocketLoop():this.loop()}websocketLoop(){var o;const t=new URL(this.config.url);t.protocol=t.protocol==="http:"?"ws:":"wss:",t.searchParams.set("token",(o=this.config.token)!=null?o:"");const s=new WebSocket(t.toString());s.addEventListener("message",a=>{const l=JSON.parse(a.data);this.EE.emit("data",[l]),this.config.bufferLength>0&&(this.innerBuffer.push(l),this.innerBuffer.length>this.config.bufferLength&&this.innerBuffer.splice(0,this.innerBuffer.length-this.config.bufferLength))}),s.addEventListener("close",()=>setTimeout(this.websocketLoop,this.config.retryInterval)),s.addEventListener("error",a=>{this.EE.emit("error",a),setTimeout(this.websocketLoop,this.config.retryInterval)})}async loop(){const t=await le.fromPromise(fetch(this.config.url,{mode:"cors",headers:this.config.token?{Authorization:`Bearer ${this.config.token}`}:{}}),a=>a);if(t.isErr()){this.retry(t.error);return}else if(t.value.body==null){this.retry(new Error("fetch body error"));return}const s=t.value.body.getReader(),o=new TextDecoder;for(;!this.isClose;){const a=await le.fromPromise(s==null?void 0:s.read(),c=>c);if(a.isErr()){this.retry(a.error);break}const r=o.decode(a.value.value).trim().split(`
2-`).map(c=>JSON.parse(c));this.EE.emit("data",r),this.config.bufferLength>0&&(this.innerBuffer.push(...r),this.innerBuffer.length>this.config.bufferLength&&this.innerBuffer.splice(0,this.innerBuffer.length-this.config.bufferLength))}}retry(t){this.isClose||(this.EE.emit("error",t),window.setTimeout(()=>{this.loop()},this.config.retryInterval))}subscribe(t,s){this.EE.addListener(t,s)}unsubscribe(t,s){this.EE.removeListener(t,s)}buffer(){return this.innerBuffer.slice()}destory(){this.EE.removeAllListeners(),this.isClose=!0}}class Tt{constructor(t,s){this.axiosClient=at.create({baseURL:t,headers:s?{Authorization:`Bearer ${s}`}:{}})}async getConfig(){return await this.axiosClient.get("configs")}async updateConfig(t){return await this.axiosClient.patch("configs",t)}async getRules(){return await this.axiosClient.get("rules")}async getProxyProviders(){const t=await this.axiosClient.get("providers/proxies",{validateStatus(s){return s>=200&&s<300||s===404}});return t.status===404&&(t.data={providers:{}}),t}async getRuleProviders(){return await this.axiosClient.get("providers/rules")}async updateProvider(t){return await this.axiosClient.put(`providers/proxies/${encodeURIComponent(t)}`)}async updateRuleProvider(t){return await this.axiosClient.put(`providers/rules/${encodeURIComponent(t)}`)}async healthCheckProvider(t){return await this.axiosClient.get(`providers/proxies/${encodeURIComponent(t)}/healthcheck`)}async getProxies(){return await this.axiosClient.get("proxies")}async getProxy(t){return await this.axiosClient.get(`proxies/${encodeURIComponent(t)}`)}async getVersion(){return await this.axiosClient.get("version")}async getProxyDelay(t){return await this.axiosClient.get(`proxies/${encodeURIComponent(t)}/delay`,{params:{timeout:5e3,url:"http://www.gstatic.com/generate_204"}})}async closeAllConnections(){return await this.axiosClient.delete("connections")}async closeConnection(t){return await this.axiosClient.delete(`connections/${t}`)}async getConnections(){return await this.axiosClient.get("connections")}async changeProxySelected(t,s){return await this.axiosClient.put(`proxies/${encodeURIComponent(t)}`,{name:s})}}const Bt=Y(async()=>{if(!ee())return null;const n=await b.getAPIInfo();return{hostname:n.host,port:n.port,secret:n.secret,protocol:"http:"}}),Ue=ye("externalControllers",[]);function se(){var f,u,d,h,E,x,N,F,L,k,C,T,I,j,Q;const n=De(Bt),t=ge(),s=De(Ue);if(n!=null)return n;let o;{const _=document.querySelector('meta[name="external-controller"]');((f=_==null?void 0:_.content)==null?void 0:f.match(/^https?:/))!=null&&(o=new URL(_.content))}const a=new URLSearchParams(t.search),l=(E=(h=(d=a.get("host"))!=null?d:(u=s==null?void 0:s[0])==null?void 0:u.hostname)!=null?h:o==null?void 0:o.hostname)!=null?E:"127.0.0.1",r=(L=(F=(N=a.get("port"))!=null?N:(x=s==null?void 0:s[0])==null?void 0:x.port)!=null?F:o==null?void 0:o.port)!=null?L:"9090",c=(I=(T=(C=a.get("secret"))!=null?C:(k=s==null?void 0:s[0])==null?void 0:k.secret)!=null?T:o==null?void 0:o.username)!=null?I:"",m=((j=a.get("protocol"))!=null?j:l==="127.0.0.1")?"http:":(Q=o==null?void 0:o.protocol)!=null?Q:window.location.protocol;return{hostname:l,port:r,secret:c,protocol:m}}const It=Y({key:"",instance:null});function $(){const{hostname:n,port:t,secret:s,protocol:o}=se(),[a,l]=B(It),r=`${o}//${n}:${t}?secret=${s}`;if(a.key===r)return a.instance;const c=new Tt(`${o}//${n}:${t}`,s);return l({key:r,instance:c}),c}const Ce=Y(!0),Rt=ye("language",void 0);function P(){const[n,t]=B(Rt),s=p.exports.useMemo(()=>n!=null?n:Lt(),[n]),o=p.exports.useCallback(function(a){function l(r){return lt(He[s][a],r)}return{t:l}},[s]);return{lang:s,locales:$t,setLang:t,translation:o}}const We=Y({version:"",premium:!1});function ie(){const[n,t]=B(We),s=$(),o=xe(Ce);return K([s],async function(){const a=await le.fromPromise(s.getVersion(),l=>l);o(a.isOk()),t(a.isErr()?{version:"",premium:!1}:{version:a.value.data.version,premium:!!a.value.data.premium})}),n}function ze(){const[{premium:n}]=B(We),t=$(),{data:s,mutate:o}=K(["/providers/rule",t,n],async()=>{if(!n)return[];const a=await t.getRuleProviders();return Object.keys(a.data.providers).map(l=>a.data.providers[l])});return{providers:s!=null?s:[],update:o}}const Mt=ye("profile",{breakConnections:!1});function je(){const[n,t]=B(Mt),s=p.exports.useCallback(o=>{t(ne(n,o))},[n,t]);return{data:n,set:we(s)}}const _e=Y([]);function Ge(){const[n,t]=B(_e),s=$(),{data:o,mutate:a}=K(["/providers/proxy",s],async()=>{const l=await s.getProxyProviders();return Object.keys(l.data.providers).map(r=>l.data.providers[r]).filter(r=>r.name!=="default").filter(r=>r.vehicleType!=="Compatible")});return p.exports.useEffect(()=>{t(o!=null?o:[])},[o,t]),{providers:n,update:a}}function be(){const n=$(),{data:t,mutate:s}=K(["/config",n],async()=>{var l;const a=(await n.getConfig()).data;return{port:a.port,socksPort:a["socks-port"],mixedPort:(l=a["mixed-port"])!=null?l:0,redirPort:a["redir-port"],mode:a.mode.toLowerCase(),logLevel:a["log-level"],allowLan:a["allow-lan"]}});return{general:t!=null?t:{},update:s}}const Ve=Ie({proxies:[],groups:[],global:{name:"GLOBAL",type:"Selector",now:"",history:[],all:[]}});function ue(){const[n,t]=B(Ve),s=we(t),o=$(),{mutate:a}=K(["/proxies",o],async()=>{const r=await o.getProxies(),c=r.data.proxies.GLOBAL;c.name="GLOBAL";const m=new Set(["Selector","URLTest","Fallback","LoadBalance"]),f=new Set(["DIRECT","REJECT","GLOBAL"]),u=c.all.filter(E=>!f.has(E)).map(E=>A(w({},r.data.proxies[E]),{name:E})),[d,h]=Ft(u,E=>!m.has(E.type));s({proxies:d,groups:h,global:c})}),l=p.exports.useCallback((r,c)=>{s(m=>{r==="GLOBAL"&&(m.global.now=c);for(const f of m.groups)f.name===r&&(f.now=c)})},[s]);return{proxies:n.proxies,groups:n.groups,global:n.global,update:a,markProxySelected:l,set:s}}const Ht=Y(n=>{const t=n(Ve),s=n(_e),o=new Map;for(const a of t.proxies)o.set(a.name,a);for(const a of s)for(const l of a.proxies)o.set(l.name,l);return o});function Je(){const{data:n,mutate:t}=K("/clashx",async()=>{var a,l;if(!ee())return{isClashX:!1,startAtLogin:!1,systemProxy:!1};const s=(a=await(b==null?void 0:b.getStartAtLogin()))!=null?a:!1,o=(l=await(b==null?void 0:b.isSystemProxySet()))!=null?l:!1;return{startAtLogin:s,systemProxy:o,isClashX:!0}});return{data:n,update:t}}const Ot=Ie([]);function Ut(){const[n,t]=B(Ot),s=we(t),o=$();async function a(){const l=await o.getRules();s(l.data.rules)}return{rules:n,update:a}}const Wt=Y({key:"",instance:null});function Xe(){var u,d;const n=se(),{general:t}=be(),s=ie(),[o,a]=B(Wt);if(!s.version||!t.logLevel)return null;const l=!!s.version||!0,r=`${n.protocol}//${n.hostname}:${n.port}/logs?level=${(u=t.logLevel)!=null?u:""}&useWebsocket=${l}&secret=${n.secret}`;if(o.key===r)return o.instance;const c=o.instance,m=`${n.protocol}//${n.hostname}:${n.port}/logs?level=${(d=t.logLevel)!=null?d:""}`,f=new Oe({url:m,bufferLength:200,token:n.secret,useWebsocket:l});return a({key:r,instance:f}),c!=null&&c.destory(),f}function zt(){const n=se(),t=ie(),s=!!t.version||!0,o=`${n.protocol}//${n.hostname}:${n.port}/connections`;return p.exports.useMemo(()=>t.version?new Oe({url:o,bufferLength:200,token:n.secret,useWebsocket:s}):null,[n.secret,o,s,t.version])}function jt(n){const{className:t,data:s,onClick:o,select:a,canClick:l,errSet:r,rowHeight:c}=n,{translation:m}=P(),{t:f}=m("Proxies"),[u,d]=p.exports.useState(!1),[h,E]=p.exports.useState(!1),x=p.exports.useRef(null);p.exports.useLayoutEffect(()=>{var C,T;E(((T=(C=x==null?void 0:x.current)==null?void 0:C.offsetHeight)!=null?T:0)>30)},[]);const N=u?"auto":c,F=l?o:W;function L(){d(!u)}const k=s.map(C=>{const T=g({"tags-selected":a===C,"cursor-pointer":l,error:r==null?void 0:r.has(C)});return e.createElement("li",{className:T,key:C,onClick:()=>F(C)},C)});return e.createElement("div",{className:g("flex items-start overflow-y-hidden",t),style:{height:N}},e.createElement("ul",{ref:x,className:g("tags",{expand:u})},k),h&&e.createElement("span",{className:"h-7 px-5 select-none cursor-pointer leading-7",onClick:L},f(u?"collapseText":"expandText")))}function Z(n){const{className:t,style:s,value:o="",align:a="center",inside:l=!1,autoFocus:r=!1,type:c="text",disabled:m=!1,onChange:f=W,onBlur:u=W,onEnter:d=W}=n,h=g("input",`text-${a}`,{"focus:shadow-none":l},t);function E(x){x.code==="Enter"&&d(x)}return e.createElement("input",{disabled:m,className:h,style:s,value:o,autoFocus:r,type:c,onChange:x=>f(x.target.value,x),onBlur:u,onKeyDown:E})}function qe(n){const{show:t=!0,title:s="Modal",size:o="small",footer:a=!0,onOk:l=W,onClose:r=W,bodyClassName:c,bodyStyle:m,className:f,style:u,children:d}=n,{translation:h}=P(),{t:E}=h("Modal"),x=p.exports.useRef(document.createElement("div")),N=p.exports.useRef(null);p.exports.useLayoutEffect(()=>{const k=x.current;return document.body.appendChild(k),()=>{document.body.removeChild(k)}},[]);function F(k){k.target===N.current&&r()}const L=e.createElement("div",{className:g("modal-mask",{"modal-show":t}),ref:N,onMouseDown:F},e.createElement("div",{className:g("modal",`modal-${o}`,f),style:u},e.createElement("div",{className:"modal-title"},s),e.createElement("div",{className:g("modal-body",c),style:m},d),a&&e.createElement("div",{className:"footer"},e.createElement(pe,{onClick:()=>r()},E("cancel")),e.createElement(pe,{type:"primary",onClick:()=>l()},E("ok")))));return Re.exports.createPortal(L,x.current)}const _t={success:"check",info:"info",warning:"info",error:"close"};function Gt(n){const{message:t="",type:s="info",inside:o=!1,children:a,className:l,style:r}=n,c=g("alert",`alert-${o?"note":"box"}-${s}`,l);return e.createElement("div",{className:c,style:r},e.createElement("span",{className:"alert-icon"},e.createElement(U,{type:_t[s],size:26})),t?e.createElement("p",{className:"alert-message"},t):e.createElement("div",{className:"alert-message"},a))}function pe(n){const{type:t="normal",onClick:s=W,children:o,className:a,style:l,disiabled:r}=n,c=g("button",`button-${t}`,a,{"button-disabled":r});return e.createElement("button",{className:c,style:l,onClick:s,disabled:r},o)}function re(n){const[t,s]=rt(n),o=p.exports.useMemo(()=>{function a(l,r){typeof l=="string"?s(c=>{const m=l,f=r;c[m]=f}):typeof l=="function"?s(l):typeof l=="object"&&s(c=>{const m=l;for(const f of Object.keys(m)){const u=f;c[u]=m[u]}})}return a},[s]);return[t,o]}function Vt(n,t=0){if(n.length<2)throw new Error("List requires at least two elements");const[s,o]=p.exports.useState(t);function a(){o((s+1)%n.length)}return{current:p.exports.useMemo(()=>n[s],[n,s]),next:a}}function Ne(n=!1){const[t,s]=p.exports.useState(n);function o(){s(!1)}function a(){s(!0)}return{visible:t,hide:o,show:a}}function Ye(n){const{className:t,checked:s=!1,onChange:o=W}=n,a=g("checkbox",{checked:s},t);function l(){o(!s)}return e.createElement("div",{className:a,onClick:l},e.createElement(U,{className:"checkbox-icon",type:"check",size:18}),e.createElement("div",null,n.children))}function ce(n){const{color:t,className:s,style:o}=n,a=g("tag",s),l=w({color:t},o),r=A(w({},n),{className:a,style:l});return e.createElement("span",w({},r),n.children)}function Jt(n){const t=g("spinner",n.className);return e.createElement("div",{className:t},e.createElement("div",{className:"spinner-circle"},e.createElement("div",{className:"spinner-inner"})),e.createElement("div",{className:"spinner-circle"},e.createElement("div",{className:"spinner-inner"})),e.createElement("div",{className:"spinner-circle"},e.createElement("div",{className:"spinner-inner"})),e.createElement("div",{className:"spinner-circle"},e.createElement("div",{className:"spinner-inner"})),e.createElement("div",{className:"spinner-circle"},e.createElement("div",{className:"spinner-inner"})))}function Ke(n){const t=g("loading","visible",n.className);return n.visible?e.createElement("div",{className:t},e.createElement(Jt,{className:n.spinnerClassName})):null}function Xt(n){var a,l,r;const t=p.exports.useRef(document.createElement("div"));p.exports.useLayoutEffect(()=>{const c=t.current;return document.body.appendChild(c),()=>{document.body.removeChild(c)}},[]);const s="absolute h-full right-0 transition-transform transform translate-x-full duration-100 pointer-events-auto",o=e.createElement("div",{className:g(n.className,"absolute inset-0 pointer-events-none z-9999")},e.createElement(z,{className:g(s,{"translate-x-0":n.visible}),style:{width:(a=n.width)!=null?a:400}},n.children));return Re.exports.createPortal(o,(r=(l=n.containerRef)==null?void 0:l.current)!=null?r:t.current)}ve.extend(ct);function Pe(n,t){const s=t==="en_US"?"en":"zh-cn";return ve().locale(s).from(n)}function qt(n){const{translation:t}=P(),s=p.exports.useMemo(()=>t("Connections").t,[t]),{className:o,style:a}=n,l=g("flex flex-wrap px-1",o);function r(c){var m;(m=n.onChange)==null||m.call(n,c)}return e.createElement("div",{className:l,style:a},e.createElement("div",{className:g("connections-devices-item pt-2 mb-2",{selected:n.selected===""}),onClick:()=>r("")},s("filter.all")),n.devices.map(c=>e.createElement("div",{key:c.label,className:g("connections-devices-item pt-2 mb-2",{selected:n.selected===c.label}),onClick:()=>r(c.label)},c.label," (",c.number,")")))}function Yt(n){var o,a,l,r,c,m,f,u,d,h,E,x,N;const{translation:t}=P(),s=p.exports.useMemo(()=>t("Connections").t,[t]);return e.createElement("div",{className:g(n.className,"text-sm flex flex-col")},e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.id")),e.createElement("span",{className:"font-mono"},n.connection.id)),e.createElement("div",{className:"flex my-3 justify-between"},e.createElement("div",{className:"flex flex-1"},e.createElement("span",{className:"font-bold w-20"},s("info.network")),e.createElement("span",{className:"font-mono"},(o=n.connection.metadata)==null?void 0:o.network)),e.createElement("div",{className:"flex flex-1"},e.createElement("span",{className:"font-bold w-20"},s("info.inbound")),e.createElement("span",{className:"font-mono"},(a=n.connection.metadata)==null?void 0:a.type))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.host")),e.createElement("span",{className:"font-mono flex-1 break-all"},(l=n.connection.metadata)!=null&&l.host?`${n.connection.metadata.host}:${(r=n.connection.metadata)==null?void 0:r.destinationPort}`:s("info.hostEmpty"))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.dstIP")),e.createElement("span",{className:"font-mono"},(c=n.connection.metadata)!=null&&c.destinationIP?`${n.connection.metadata.destinationIP}:${(m=n.connection.metadata)==null?void 0:m.destinationPort}`:s("info.hostEmpty"))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.srcIP")),e.createElement("span",{className:"font-mono"},`${(f=n.connection.metadata)==null?void 0:f.sourceIP}:${(u=n.connection.metadata)==null?void 0:u.sourcePort}`)),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.process")),e.createElement("span",{className:"font-mono"},(d=n.connection.metadata)!=null&&d.processPath?`${Me(n.connection.metadata.processPath)}`:s("info.hostEmpty"))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.processPath")),e.createElement("span",{className:"font-mono flex-1 break-all"},(h=n.connection.metadata)!=null&&h.processPath?`${n.connection.metadata.processPath}`:s("info.hostEmpty"))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.rule")),e.createElement("span",{className:"font-mono"},n.connection.rule&&`${n.connection.rule}${n.connection.rulePayload&&` :: ${n.connection.rulePayload}`}`)),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.chains")),e.createElement("span",{className:"font-mono flex-1 break-all"},(E=n.connection.chains)==null?void 0:E.slice().reverse().join(" / "))),e.createElement("div",{className:"flex my-3 justify-between"},e.createElement("div",{className:"flex flex-1"},e.createElement("span",{className:"font-bold w-20"},s("info.upload")),e.createElement("span",{className:"font-mono"},O((x=n.connection.upload)!=null?x:0))),e.createElement("div",{className:"flex flex-1"},e.createElement("span",{className:"font-bold w-20"},s("info.download")),e.createElement("span",{className:"font-mono"},O((N=n.connection.download)!=null?N:0)))),e.createElement("div",{className:"flex my-3"},e.createElement("span",{className:"font-bold w-20"},s("info.status")),e.createElement("span",{className:"font-mono"},n.connection.completed?e.createElement("span",{className:"text-red"},s("info.closed")):e.createElement("span",{className:"text-green"},s("info.opening")))))}class Kt{constructor(){this.connections=new Map,this.saveDisconnection=!1}appendToSet(t){var o;const s=t.reduce((a,l)=>a.set(l.id,l),new Map);for(const a of this.connections.keys())if(!s.has(a))if(!this.saveDisconnection)this.connections.delete(a);else{const l=this.connections.get(a);l!=null&&this.connections.set(a,ne(l,r=>{r.completed=!0,r.uploadSpeed=0,r.downloadSpeed=0}))}for(const a of s.keys()){if(!this.connections.has(a)){this.connections.set(a,A(w({},s.get(a)),{uploadSpeed:0,downloadSpeed:0}));continue}const l=this.connections.get(a),r=s.get(a);(o=this.connections)==null||o.set(a,A(w({},r),{uploadSpeed:r.upload-l.upload,downloadSpeed:r.download-l.download}))}}toggleSave(){var t,s;if(this.saveDisconnection){this.saveDisconnection=!1;for(const o of this.connections.keys())(s=(t=this.connections)==null?void 0:t.get(o))!=null&&s.completed&&this.connections.delete(o)}else this.saveDisconnection=!0;return this.saveDisconnection}getConnections(){return[...this.connections.values()]}}function Qt(){const n=p.exports.useMemo(()=>new Kt,[]),t=p.exports.useRef(!0),[s,o]=p.exports.useState([]),[a,l]=p.exports.useState(!1),r=p.exports.useCallback(function(m){n.appendToSet(m),t.current&&o(n.getConnections()),t.current=!t.current},[n]),c=p.exports.useCallback(function(){const m=n.toggleSave();l(m),m||o(n.getConnections()),t.current=!0},[n]);return{connections:s,feed:r,toggleSave:c,save:a}}const Zt=new Set(["network","type","speed","upload","download","sourceIP","time","process"]);function en(n,t){switch(!0){case(n===0&&t===0):return"-";case(n!==0&&t!==0):return`\u2191 ${O(n)}/s \u2193 ${O(t)}/s`;case n!==0:return`\u2191 ${O(n)}/s`;default:return`\u2193 ${O(t)}/s`}}const S=it();function tn(){const{translation:n,lang:t}=P(),s=p.exports.useMemo(()=>n("Connections").t,[n]),o=zt(),a=$(),l=p.exports.useRef(null),[r,c]=re({uploadTotal:0,downloadTotal:0}),{visible:m,show:f,hide:u}=Ne();function d(){a.closeAllConnections().finally(()=>u())}const{connections:h,feed:E,save:x,toggleSave:N}=Qt(),F=p.exports.useMemo(()=>h.map(i=>({id:i.id,host:`${i.metadata.host||i.metadata.destinationIP}:${i.metadata.destinationPort}`,chains:i.chains.slice().reverse().join(" / "),rule:i.rulePayload?`${i.rule} :: ${i.rulePayload}`:i.rule,time:new Date(i.start).getTime(),upload:i.upload,download:i.download,sourceIP:i.metadata.sourceIP,type:i.metadata.type,network:i.metadata.network.toUpperCase(),process:i.metadata.processPath,speed:{upload:i.uploadSpeed,download:i.downloadSpeed},completed:!!i.completed,original:i})),[h]),L=p.exports.useMemo(()=>{const i=ut(h,"metadata.sourceIP");return Object.keys(i).map(v=>({label:v,number:i[v].length})).sort((v,y)=>v.label.localeCompare(y.label))},[h]),k=p.exports.useRef(null),C=mt(k,{threshold:[1]}),T=p.exports.useMemo(()=>S.createColumns([S.createDataColumn("host",{minWidth:260,width:260,header:s("columns.host")}),S.createDataColumn("network",{minWidth:80,width:80,header:s("columns.network")}),S.createDataColumn("type",{minWidth:100,width:100,header:s("columns.type")}),S.createDataColumn("chains",{minWidth:200,width:200,header:s("columns.chains")}),S.createDataColumn("rule",{minWidth:140,width:140,header:s("columns.rule")}),S.createDataColumn("process",{minWidth:100,width:100,header:s("columns.process"),cell:i=>i.value?Me(i.value):"-"}),S.createDataColumn(i=>[i.speed.upload,i.speed.download],{id:"speed",header:s("columns.speed"),minWidth:200,width:200,sortDescFirst:!0,sortType(i,v){var H,D,q,ke;const y=(D=(H=i.original)==null?void 0:H.speed)!=null?D:{upload:0,download:0},M=(ke=(q=v.original)==null?void 0:q.speed)!=null?ke:{upload:0,download:0};return y.download===M.download?y.upload-M.upload:y.download-M.download},cell:i=>en(i.value[0],i.value[1])}),S.createDataColumn("upload",{minWidth:100,width:100,header:s("columns.upload"),cell:i=>O(i.value)}),S.createDataColumn("download",{minWidth:100,width:100,header:s("columns.download"),cell:i=>O(i.value)}),S.createDataColumn("sourceIP",{minWidth:140,width:140,header:s("columns.sourceIP"),filterType:"equals"}),S.createDataColumn("time",{minWidth:120,width:120,header:s("columns.time"),cell:i=>Pe(new Date(i.value),t),sortType:(i,v)=>{var y,M,H,D;return((M=(y=v.original)==null?void 0:y.time)!=null?M:0)-((D=(H=i.original)==null?void 0:H.time)!=null?D:0)}})]),[t,s]);p.exports.useLayoutEffect(()=>{function i(v){for(const y of v)c({uploadTotal:y.uploadTotal,downloadTotal:y.downloadTotal}),E(y.connections)}return o==null||o.subscribe("data",i),()=>{o==null||o.unsubscribe("data",i),o==null||o.destory()}},[o,E,c]);const I=dt(S,{data:F,columns:T,getCoreRowModel:ft(),getSortedRowModel:ht(),getColumnFilteredRowModel:Et(),initialState:{sorting:[{id:"time",desc:!1}]},columnResizeMode:"onChange",enableColumnResizing:!0,autoResetSorting:!1,autoResetColumnFilters:!1}),j=I.getHeaderGroups()[0],[Q,_]=p.exports.useState("");function me(i){_(i),I.setColumnFilterValue("sourceIP",i||void 0)}const[R,G]=re({visible:!1,selectedID:"",connection:{}});function V(){G(i=>{i.connection.completed=!0}),a.closeConnection(R.selectedID)}const X=pt(R.connection);p.exports.useEffect(()=>{var v;const i=(v=F.find(y=>y.id===R.selectedID))==null?void 0:v.original;i?G(y=>{y.connection=w({},i),R.selectedID===X.current.id&&(y.connection.completed=X.current.completed)}):Object.keys(X.current).length!==0&&!X.current.completed&&G(y=>{y.connection.completed=!0})},[F,R.selectedID,X,G]);const te=p.exports.useMemo(()=>{var i;return((i=C==null?void 0:C.intersectionRatio)!=null?i:0)<1},[C]),oe=j.headers.map((i,v)=>{const y=i.column,M=y.id;return e.createElement("th",A(w({},i.getHeaderProps(H=>ne(H,D=>{D.className=g("connections-th",{resizing:y.getIsResizing(),fixed:y.id==="host",shadow:te&&y.id==="host"}),!D.style&&(D.style={}),D.style.width=i.getWidth()}))),{ref:y.id==="host"?k:void 0,key:M}),e.createElement("div",w({},y.getToggleSortingProps()),i.renderHeader(),y.getIsSorted()!==!1?y.getIsSorted()==="desc"?" \u2193":" \u2191":null),v!==j.headers.length-1&&e.createElement("div",A(w({},i.getResizerProps()),{className:"connections-resizer"})))}),ae=I.getRowModel().rows.map(i=>{var v;return e.createElement("tr",A(w({},i.getRowProps()),{className:"cursor-default select-none",key:(v=i.original)==null?void 0:v.id,onClick:()=>{var y;return G({visible:!0,selectedID:(y=i.original)==null?void 0:y.id})}}),i.getAllCells().map(y=>{var H;const M=g("connections-block",{"text-center":Zt.has(y.column.id),completed:(H=i.original)==null?void 0:H.completed},{fixed:y.column.id==="host",shadow:te&&y.column.id==="host"});return e.createElement("td",A(w({},y.getCellProps(D=>ne(D,q=>{!q.style&&(q.style={}),q.className=M,q.style.width=y.column.getWidth()}))),{key:y.column.id}),y.renderCell())}))});return e.createElement("div",{className:"page !h-100vh"},e.createElement(J,{title:s("title")},e.createElement("span",{className:"cursor-default flex-1 connections-filter"},`(${s("total.text")}: ${s("total.upload")} ${O(r.uploadTotal)} ${s("total.download")} ${O(r.downloadTotal)})`),e.createElement(Ye,{className:"connections-filter",checked:x,onChange:N},s("keepClosed")),e.createElement(U,{className:"connections-filter dangerous",onClick:f,type:"close-all",size:20})),L.length>1&&e.createElement(qt,{devices:L,selected:Q,onChange:me}),e.createElement(z,{ref:l,className:"connections-card relative"},e.createElement("div",{className:"overflow-auto min-h-full min-w-full"},e.createElement("table",w({},I.getTableProps()),e.createElement("thead",null,e.createElement("tr",A(w({},j.getHeaderGroupProps()),{className:"connections-header"}),oe)),e.createElement("tbody",w({},I.getTableBodyProps()),ae)))),e.createElement(qe,{title:s("closeAll.title"),show:m,onClose:u,onOk:d},s("closeAll.content")),e.createElement(Xt,{containerRef:l,visible:R.visible,width:450},e.createElement("div",{className:"flex h-8 justify-between items-center"},e.createElement("span",{className:"font-bold pl-3"},s("info.title")),e.createElement(U,{type:"close",size:16,className:"cursor-pointer",onClick:()=>G("visible",!1)})),e.createElement(Yt,{className:"mt-3 px-5",connection:R.connection}),e.createElement("div",{className:"flex mt-3 pr-3 justify-end"},e.createElement(pe,{type:"danger",disiabled:R.connection.completed,onClick:()=>V()},s("info.closeConnection")))))}function nn(){const{translation:n}=P(),{t}=n("Settings"),{hostname:s,port:o,secret:a}=se(),[l,r]=B(Ce),[c,m]=re({hostname:"",port:"",secret:""});p.exports.useEffect(()=>{m({hostname:s,port:o,secret:a})},[s,o,a,m]);const f=xe(Ue);function u(){const{hostname:d,port:h,secret:E}=c;f([{hostname:d,port:h,secret:E}])}return e.createElement(qe,{show:!l,title:t("externalControllerSetting.title"),bodyClassName:"external-controller",onClose:()=>r(!0),onOk:u},e.createElement(Gt,{type:"info",inside:!0},e.createElement("p",null,t("externalControllerSetting.note"))),e.createElement("div",{className:"flex items-center"},e.createElement("span",{className:"font-bold my-1 w-14 md:my-3"},t("externalControllerSetting.host")),e.createElement(Z,{className:"flex-1 my-1 md:my-3",align:"left",inside:!0,value:c.hostname,onChange:d=>m("hostname",d),onEnter:u})),e.createElement("div",{className:"flex items-center"},e.createElement("div",{className:"font-bold my-1 w-14 md:my-3"},t("externalControllerSetting.port")),e.createElement(Z,{className:"flex-1 my-1 w-14 md:my-3",align:"left",inside:!0,value:c.port,onChange:d=>m("port",d),onEnter:u})),e.createElement("div",{className:"flex items-center"},e.createElement("div",{className:"font-bold my-1 w-14 md:my-3"},t("externalControllerSetting.secret")),e.createElement(Z,{className:"flex-1 my-1 w-14 md:my-3",align:"left",inside:!0,value:c.secret,onChange:d=>m("secret",d),onEnter:u})))}function sn(){var m,f;const n=p.exports.useRef(null),t=p.exports.useRef([]),[s,o]=p.exports.useState([]),{translation:a}=P(),{t:l}=a("Logs"),r=Xe(),c=p.exports.useRef((f=(m=n.current)==null?void 0:m.scrollHeight)!=null?f:0);return p.exports.useLayoutEffect(()=>{var d;const u=n.current;u!=null&&c.current===u.scrollTop+u.clientHeight&&(u.scrollTop=u.scrollHeight-u.clientHeight),c.current=(d=u==null?void 0:u.scrollHeight)!=null?d:0}),p.exports.useEffect(()=>{function u(d){t.current=t.current.slice().concat(d.map(h=>A(w({},h),{time:new Date}))),o(t.current)}return r!=null&&(r.subscribe("data",u),t.current=r.buffer(),o(t.current)),()=>r==null?void 0:r.unsubscribe("data",u)},[r]),e.createElement("div",{className:"page"},e.createElement(J,{title:l("title")}),e.createElement(z,{className:"flex flex-col flex-1 mt-2.5 md:mt-4"},e.createElement("ul",{className:"logs-panel",ref:n},s.map((u,d)=>e.createElement("li",{className:"leading-5 inline-block",key:d},e.createElement("span",{className:"mr-4 text-gray-400 text-opacity-90"},ve(u.time).format("YYYY-MM-DD HH:mm:ss")),e.createElement("span",null,"[",u.type,"] ",u.payload))))))}var fe=(n=>(n.SPEED_NOTIFY="speed-notify",n))(fe||{});class on{constructor(){this.EE=new Be}notifySpeedTest(){this.EE.emit("speed-notify")}subscribe(t,s){this.EE.addListener(t,s)}unsubscribe(t,s){this.EE.removeListener(t,s)}}var he=new on;const Le={"#909399":0,"#00c520":260,"#ff9a28":600,"#ff3e5e":1/0};function Qe(n){const{config:t,className:s}=n,{set:o}=ue(),a=$(),l=p.exports.useCallback(async d=>{var E;if(ee())return(E=await(b==null?void 0:b.getProxyDelay(d)))!=null?E:0;const{data:{delay:h}}=await a.getProxyDelay(d);return h},[a]),r=p.exports.useCallback(async function(){const d=await le.fromPromise(l(t.name),E=>E),h=d.isErr()?0:d.value;o(E=>{const x=E.proxies.find(N=>N.name===t.name);x!=null&&x.history.push({time:Date.now().toString(),delay:h})})},[t.name,l,o]),c=p.exports.useMemo(()=>{var d;return(d=t.history)!=null&&d.length?t.history.slice(-1)[0].delay:0},[t]);p.exports.useLayoutEffect(()=>{const d=()=>{r()};return he.subscribe(fe.SPEED_NOTIFY,d),()=>he.unsubscribe(fe.SPEED_NOTIFY,d)},[r]);const m=p.exports.useMemo(()=>c===0,[c]),f=p.exports.useMemo(()=>Object.keys(Le).find(d=>c<=Le[d]),[c]),u=m?void 0:f;return e.createElement("div",{className:g("proxy-item",{"proxy-error":m},s)},e.createElement("span",{className:"proxy-type",style:{backgroundColor:u}},t.type),e.createElement("p",{className:"proxy-name"},t.name),e.createElement("p",{className:"proxy-delay"},c===0?"-":`${c}ms`))}function an(n){const{markProxySelected:t}=ue(),[s]=B(Ht),{data:o}=je(),a=$(),{config:l}=n;async function r(f){if(await a.changeProxySelected(n.config.name,f),t(n.config.name,f),o.breakConnections){const u=[],d=await a.getConnections();for(const h of d.data.connections)h.chains.includes(n.config.name)&&u.push(h.id);await Promise.all(u.map(h=>a.closeConnection(h)))}}const c=p.exports.useMemo(()=>{var u;const f=new Set;for(const d of l.all){const h=(u=s.get(d))==null?void 0:u.history;(h==null?void 0:h.length)&&h.slice(-1)[0].delay===0&&f.add(d)}return f},[l.all,s]),m=l.type==="Selector";return e.createElement("div",{className:"proxy-group"},e.createElement("div",{className:"flex h-10 mt-4 w-full items-center justify-between md:h-15 md:mt-0 md:w-auto "},e.createElement("span",{className:"h-6 px-5 w-35 overflow-hidden overflow-ellipsis whitespace-nowrap md:w-30"},l.name),e.createElement(ce,{className:"mr-5 md:mr-0"},l.type)),e.createElement("div",{className:"flex-1 py-2 md:py-4"},e.createElement(jt,{className:"ml-5 md:ml-8",data:l.all,onClick:r,errSet:c,select:l.now,canClick:m,rowHeight:30})))}function ln(n){const{update:t}=Ge(),{translation:s,lang:o}=P(),a=$(),{provider:l}=n,{t:r}=s("Proxies"),{visible:c,hide:m,show:f}=Ne();function u(){f(),a.healthCheckProvider(l.name).then(async()=>await t()).finally(()=>m())}function d(){f(),a.updateProvider(l.name).then(async()=>await t()).finally(()=>m())}const h=p.exports.useMemo(()=>l.proxies.slice().sort((E,x)=>-1*Ee(E,x)),[l.proxies]);return e.createElement(z,{className:"proxy-provider"},e.createElement(Ke,{visible:c}),e.createElement("div",{className:"flex flex-col justify-between md:flex-row md:items-center "},e.createElement("div",{className:"flex items-center"},e.createElement("span",{className:"mr-6"},l.name),e.createElement(ce,null,l.vehicleType)),e.createElement("div",{className:"flex pt-3 items-center md:pt-0"},l.updatedAt&&e.createElement("span",{className:"text-sm"},`${r("providerUpdateTime")}: ${Pe(new Date(l.updatedAt),o)}`),e.createElement(U,{className:"cursor-pointer text-red pl-5",type:"healthcheck",size:18,onClick:u}),e.createElement(U,{className:"cursor-pointer pl-5",type:"update",size:18,onClick:d}))),e.createElement("ul",{className:"proxies-list"},h.map(E=>e.createElement("li",{key:E.name},e.createElement(Qe,{className:"proxy-provider-item",config:E})))))}const rn={[0]:"sort",[1]:"sort-ascending",[2]:"sort-descending"};function Ee(n,t){const s=n.history.length>0?n.history.slice(-1)[0].delay:0;return((t.history.length>0?t.history.slice(-1)[0].delay:0)||Number.MAX_SAFE_INTEGER)-(s||Number.MAX_SAFE_INTEGER)}function cn(){const{groups:n,global:t}=ue(),{data:s,set:o}=je(),{general:a}=be(),{translation:l}=P(),{t:r}=l("Proxies"),c=p.exports.useMemo(()=>a.mode==="global"?[t,...n]:n,[a,n,t]);return e.createElement(e.Fragment,null,c.length!==0&&e.createElement("div",{className:"flex flex-col"},e.createElement(J,{title:r("groupTitle")},e.createElement(Ye,{className:"cursor-pointer text-sm text-shadow-primary text-primary-600",checked:s.breakConnections,onChange:m=>o("breakConnections",m)},r("breakConnectionsText"))),e.createElement(z,{className:"my-2.5 p-0 md:my-4"},e.createElement("ul",{className:"list-none divide-y divide-gray-300"},c.map(m=>e.createElement("li",{key:m.name},e.createElement(an,{config:m})))))))}function un(){const{providers:n}=Ge(),{translation:t}=P(),{t:s}=t("Proxies");return e.createElement(e.Fragment,null,n.length!==0&&e.createElement("div",{className:"flex flex-col"},e.createElement(J,{title:s("providerTitle")}),e.createElement("ul",{className:"list-none"},n.map(o=>e.createElement("li",{className:"my-2.5 md:my-4",key:o.name},e.createElement(ln,{provider:o}))))))}function mn(){const{proxies:n}=ue(),{translation:t}=P(),{t:s}=t("Proxies");function o(){he.notifySpeedTest()}const{current:a,next:l}=Vt([1,2,0]),r=p.exports.useMemo(()=>{switch(a){case 2:return n.slice().sort((m,f)=>Ee(m,f));case 1:return n.slice().sort((m,f)=>-1*Ee(m,f));default:return n.slice()}},[a,n]),c=l;return e.createElement(e.Fragment,null,r.length!==0&&e.createElement("div",{className:"flex flex-col"},e.createElement(J,{title:s("title")},e.createElement(U,{className:"ml-3",type:rn[a],onClick:c,size:20}),e.createElement(U,{className:"ml-3",type:"speed",size:20}),e.createElement("span",{className:"proxies-speed-test",onClick:o},s("speedTestText"))),e.createElement("ul",{className:"proxies-list"},r.map(m=>e.createElement("li",{key:m.name},e.createElement(Qe,{config:m}))))))}function dn(){return e.createElement("div",{className:"page"},e.createElement(cn,null),e.createElement(un,null),e.createElement(mn,null))}function pn(n){const{update:t}=ze(),{translation:s,lang:o}=P(),a=$(),{provider:l}=n,{t:r}=s("Rules"),{visible:c,hide:m,show:f}=Ne();function u(){f(),a.updateRuleProvider(l.name).then(async()=>await t()).finally(()=>m())}const d=g("rule-provider-icon",{"rule-provider-loading":c});return e.createElement("div",{className:"rule-provider"},e.createElement("div",{className:"rule-provider-header"},e.createElement("div",{className:"rule-provider-header-part"},e.createElement("span",{className:"rule-provider-name"},l.name),e.createElement(ce,null,l.vehicleType),e.createElement(ce,{className:"rule-provider-behavior"},l.behavior),e.createElement("span",{className:"rule-provider-update"},`${r("ruleCount")}: ${l.ruleCount}`)),e.createElement("div",{className:"rule-provider-header-part"},l.updatedAt&&e.createElement("span",{className:"rule-provider-update"},`${r("providerUpdateTime")}: ${Pe(new Date(l.updatedAt),o)}`),e.createElement(U,{className:d,type:"update",size:18,onClick:u}))))}function fn(){const{providers:n}=ze(),{translation:t}=P(),{t:s}=t("Rules");return e.createElement(e.Fragment,null,n.length!==0&&e.createElement("div",{className:"flex flex-col"},e.createElement(J,{title:s("providerTitle")}),e.createElement(z,{className:"divide-y rounded shadow-primary mt-4 p-0"},n.map(o=>e.createElement(pn,{key:o.name,provider:o})))))}function hn(){const{rules:n,update:t}=Ut(),{translation:s}=P(),{t:o}=s("Rules");K("rules",t);function a({index:l,style:r}){const c=n[l];return e.createElement("li",{className:"rule-item",style:r},e.createElement("div",{className:"flex py-1"},e.createElement("div",{className:"text-center w-40 rule-type"},c.type),e.createElement("div",{className:"flex-1 text-center payload"},c.payload),e.createElement("div",{className:"text-center w-40 rule-proxy"},c.proxy)))}return e.createElement("div",{className:"page"},e.createElement(fn,null),e.createElement(J,{className:"not-first:mt-7.5",title:o("title")}),e.createElement(z,{className:"flex flex-col flex-1 mt-2.5 p-0 md:mt-4 focus:outline-none"},e.createElement(yt,{className:"min-h-120"},({height:l,width:r})=>e.createElement(gt,{height:l,width:r,itemCount:n.length,itemSize:50},a))))}const En=[{label:"\u4E2D\u6587",value:"zh_CN"},{label:"English",value:"en_US"}];function yn(){var te,oe,ae;const{premium:n}=ie(),{data:t,update:s}=Je(),{general:o,update:a}=be(),l=xe(Ce),r=se(),{translation:c,setLang:m,lang:f}=P(),{t:u}=c("Settings"),d=$(),[h,E]=re({socks5ProxyPort:7891,httpProxyPort:7890,mixedProxyPort:0});p.exports.useEffect(()=>{var i,v,y;E("socks5ProxyPort",(i=o==null?void 0:o.socksPort)!=null?i:0),E("httpProxyPort",(v=o==null?void 0:o.port)!=null?v:0),E("mixedProxyPort",(y=o==null?void 0:o.mixedPort)!=null?y:0)},[o,E]);async function x(i){await d.updateConfig({mode:i}),await a()}async function N(i){await(b==null?void 0:b.setStartAtLogin(i)),await s()}async function F(i){await(b==null?void 0:b.setSystemProxy(i)),await s()}function L(i){m(i)}async function k(){await d.updateConfig({port:h.httpProxyPort}),await a()}async function C(){await d.updateConfig({"socks-port":h.socks5ProxyPort}),await a()}async function T(){await d.updateConfig({"mixed-port":h.mixedProxyPort}),await a()}async function I(i){await d.updateConfig({"allow-lan":i}),await a()}const{hostname:j,port:Q}=r,{allowLan:_,mode:me}=o,R=(te=t==null?void 0:t.startAtLogin)!=null?te:!1,G=(oe=t==null?void 0:t.systemProxy)!=null?oe:!1,V=(ae=t==null?void 0:t.isClashX)!=null?ae:!1,X=p.exports.useMemo(()=>{const i=[{label:u("values.global"),value:"Global"},{label:u("values.rules"),value:"Rule"},{label:u("values.direct"),value:"Direct"}];return n&&i.push({label:u("values.script"),value:"Script"}),i},[u,n]);return e.createElement("div",{className:"page"},e.createElement(J,{title:u("title")}),e.createElement(z,{className:"settings-card"},e.createElement("div",{className:"flex flex-wrap"},e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},u("labels.startAtLogin")),e.createElement(de,{disabled:!(t!=null&&t.isClashX),checked:R,onChange:N})),e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},u("labels.language")),e.createElement($e,{options:En,value:f,onSelect:i=>L(i)}))),e.createElement("div",{className:"flex flex-wrap"},e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},u("labels.setAsSystemProxy")),e.createElement(de,{disabled:!V,checked:G,onChange:F})),e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},u("labels.allowConnectFromLan")),e.createElement(de,{checked:_,onChange:I})))),e.createElement(z,{className:"settings-card"},e.createElement("div",{className:"flex flex-wrap"},e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},u("labels.proxyMode")),e.createElement($e,{options:X,value:xt(me),onSelect:x})),e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},u("labels.socks5ProxyPort")),e.createElement(Z,{className:"w-28",disabled:V,value:h.socks5ProxyPort,onChange:i=>E("socks5ProxyPort",+i),onBlur:C}))),e.createElement("div",{className:"flex flex-wrap"},e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},u("labels.httpProxyPort")),e.createElement(Z,{className:"w-28",disabled:V,value:h.httpProxyPort,onChange:i=>E("httpProxyPort",+i),onBlur:k})),e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},u("labels.mixedProxyPort")),e.createElement(Z,{className:"w-28",disabled:V,value:h.mixedProxyPort,onChange:i=>E("mixedProxyPort",+i),onBlur:T}))),e.createElement("div",{className:"flex flex-wrap"},e.createElement("div",{className:"flex w-full py-3 px-8 items-center justify-between md:w-1/2"},e.createElement("span",{className:"font-bold label"},u("labels.externalController")),e.createElement("span",{className:g({"modify-btn":!V},"external-controller"),onClick:()=>!V&&l(!1)},`${j}:${Q}`)),e.createElement("div",{className:"px-8 w-1/2"}))))}var gn="./assets/logo.b453e72f.png";function xn(n){const{routes:t}=n,{translation:s}=P(),{version:o,premium:a}=ie(),{data:l}=Je(),{t:r}=s("SideBar"),c=ge(),m=t.map(({path:f,name:u,noMobile:d})=>e.createElement("li",{className:g("item",{"no-mobile":d}),key:u},e.createElement(vt,{to:{pathname:f,search:c.search},className:({isActive:h})=>g({active:h})},r(u))));return e.createElement("div",{className:"sidebar"},e.createElement("img",{src:gn,alt:"logo",className:"sidebar-logo"}),e.createElement("ul",{className:"sidebar-menu"},m),e.createElement("div",{className:"sidebar-version"},e.createElement("span",{className:"sidebar-version-label"},"Clash",(l==null?void 0:l.isClashX)&&"X"," ",r("Version")),e.createElement("span",{className:"sidebar-version-text"},o),a&&e.createElement("span",{className:"sidebar-version-label"},"Premium")))}function vn(){Xe();const n=ge(),t=[{path:"/proxies",name:"Proxies",element:e.createElement(dn,null)},{path:"/logs",name:"Logs",element:e.createElement(sn,null)},{path:"/rules",name:"Rules",element:e.createElement(hn,null),noMobile:!0},{path:"/connections",name:"Connections",element:e.createElement(tn,null),noMobile:!0},{path:"/settings",name:"Settings",element:e.createElement(yn,null)}];return e.createElement("div",{className:g("app",{"not-clashx":!ee()})},e.createElement(xn,{routes:t}),e.createElement("div",{className:"page-container"},e.createElement(wt,null,e.createElement(Ae,{path:"/",element:e.createElement(Ct,{to:{pathname:"/proxies",search:n.search},replace:!0})}),t.map(s=>e.createElement(Ae,{path:s.path,key:s.path,element:s.element})))),e.createElement(nn,null))}function Te(){const n=document.getElementById("root"),t=e.createElement(p.exports.StrictMode,null,e.createElement(Nt,null,e.createElement(p.exports.Suspense,{fallback:e.createElement(Ke,{visible:!0})},e.createElement(vn,null))));bt(n).render(t)}ee()?St(()=>Te()):Te();
--- a/applications/luci-app-openclash/root/usr/share/openclash/dashboard/assets/vendor.2c5fdbe2.js
+++ /dev/null
@@ -1,103 +0,0 @@
1-var Ga=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},D={exports:{}},K={};/**
2- * @license React
3- * react.production.min.js
4- *
5- * Copyright (c) Facebook, Inc. and its affiliates.
6- *
7- * This source code is licensed under the MIT license found in the
8- * LICENSE file in the root directory of this source tree.
9- */var Oo=Symbol.for("react.element"),hh=Symbol.for("react.portal"),mh=Symbol.for("react.fragment"),yh=Symbol.for("react.strict_mode"),wh=Symbol.for("react.profiler"),Sh=Symbol.for("react.provider"),Ch=Symbol.for("react.context"),_h=Symbol.for("react.forward_ref"),Rh=Symbol.for("react.suspense"),Eh=Symbol.for("react.memo"),Ph=Symbol.for("react.lazy"),sf=Symbol.iterator;function xh(e){return e===null||typeof e!="object"?null:(e=sf&&e[sf]||e["@@iterator"],typeof e=="function"?e:null)}var Td={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Fd=Object.assign,bd={};function pr(e,t,n){this.props=e,this.context=t,this.refs=bd,this.updater=n||Td}pr.prototype.isReactComponent={};pr.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};pr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function zd(){}zd.prototype=pr.prototype;function Wa(e,t,n){this.props=e,this.context=t,this.refs=bd,this.updater=n||Td}var Ba=Wa.prototype=new zd;Ba.constructor=Wa;Fd(Ba,pr.prototype);Ba.isPureReactComponent=!0;var ff=Array.isArray,Ld=Object.prototype.hasOwnProperty,qa={current:null},Dd={key:!0,ref:!0,__self:!0,__source:!0};function Nd(e,t,n){var r,o={},i=null,u=null;if(t!=null)for(r in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(i=""+t.key),t)Ld.call(t,r)&&!Dd.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),s=0;s<l;s++)a[s]=arguments[s+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Oo,type:e,key:i,ref:u,props:o,_owner:qa.current}}function Oh(e,t){return{$$typeof:Oo,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ka(e){return typeof e=="object"&&e!==null&&e.$$typeof===Oo}function Ih(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var cf=/\/+/g;function Mu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Ih(""+e.key):t.toString(36)}function fi(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case Oo:case hh:u=!0}}if(u)return u=e,o=o(u),e=r===""?"."+Mu(u,0):r,ff(o)?(n="",e!=null&&(n=e.replace(cf,"$&/")+"/"),fi(o,t,n,"",function(s){return s})):o!=null&&(Ka(o)&&(o=Oh(o,n+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(cf,"$&/")+"/")+e)),t.push(o)),1;if(u=0,r=r===""?".":r+":",ff(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+Mu(i,l);u+=fi(i,t,n,a,o)}else if(a=xh(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+Mu(i,l++),u+=fi(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function bo(e,t,n){if(e==null)return e;var r=[],o=0;return fi(e,r,"","",function(i){return t.call(n,i,o++)}),r}function $h(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Ie={current:null},ci={transition:null},kh={ReactCurrentDispatcher:Ie,ReactCurrentBatchConfig:ci,ReactCurrentOwner:qa};K.Children={map:bo,forEach:function(e,t,n){bo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return bo(e,function(){t++}),t},toArray:function(e){return bo(e,function(t){return t})||[]},only:function(e){if(!Ka(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};K.Component=pr;K.Fragment=mh;K.Profiler=wh;K.PureComponent=Wa;K.StrictMode=yh;K.Suspense=Rh;K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kh;K.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Fd({},e.props),o=e.key,i=e.ref,u=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,u=qa.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(a in t)Ld.call(t,a)&&!Dd.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&l!==void 0?l[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var s=0;s<a;s++)l[s]=arguments[s+2];r.children=l}return{$$typeof:Oo,type:e.type,key:o,ref:i,props:r,_owner:u}};K.createContext=function(e){return e={$$typeof:Ch,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Sh,_context:e},e.Consumer=e};K.createElement=Nd;K.createFactory=function(e){var t=Nd.bind(null,e);return t.type=e,t};K.createRef=function(){return{current:null}};K.forwardRef=function(e){return{$$typeof:_h,render:e}};K.isValidElement=Ka;K.lazy=function(e){return{$$typeof:Ph,_payload:{_status:-1,_result:e},_init:$h}};K.memo=function(e,t){return{$$typeof:Eh,type:e,compare:t===void 0?null:t}};K.startTransition=function(e){var t=ci.transition;ci.transition={};try{e()}finally{ci.transition=t}};K.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};K.useCallback=function(e,t){return Ie.current.useCallback(e,t)};K.useContext=function(e){return Ie.current.useContext(e)};K.useDebugValue=function(){};K.useDeferredValue=function(e){return Ie.current.useDeferredValue(e)};K.useEffect=function(e,t){return Ie.current.useEffect(e,t)};K.useId=function(){return Ie.current.useId()};K.useImperativeHandle=function(e,t,n){return Ie.current.useImperativeHandle(e,t,n)};K.useInsertionEffect=function(e,t){return Ie.current.useInsertionEffect(e,t)};K.useLayoutEffect=function(e,t){return Ie.current.useLayoutEffect(e,t)};K.useMemo=function(e,t){return Ie.current.useMemo(e,t)};K.useReducer=function(e,t,n){return Ie.current.useReducer(e,t,n)};K.useRef=function(e){return Ie.current.useRef(e)};K.useState=function(e){return Ie.current.useState(e)};K.useSyncExternalStore=function(e,t,n){return Ie.current.useSyncExternalStore(e,t,n)};K.useTransition=function(){return Ie.current.useTransition()};K.version="18.0.0-fc46dba67-20220329";D.exports=K;var aP=D.exports,Hd={exports:{}},Ge={},jd={exports:{}},Vd={};/**
10- * @license React
11- * scheduler.production.min.js
12- *
13- * Copyright (c) Facebook, Inc. and its affiliates.
14- *
15- * This source code is licensed under the MIT license found in the
16- * LICENSE file in the root directory of this source tree.
17- */(function(e){function t(I,z){var _=I.length;I.push(z);e:for(;0<_;){var E=_-1>>>1,O=I[E];if(0<o(O,z))I[E]=z,I[_]=O,_=E;else break e}}function n(I){return I.length===0?null:I[0]}function r(I){if(I.length===0)return null;var z=I[0],_=I.pop();if(_!==z){I[0]=_;e:for(var E=0,O=I.length,A=O>>>1;E<A;){var T=2*(E+1)-1,k=I[T],V=T+1,G=I[V];if(0>o(k,_))V<O&&0>o(G,k)?(I[E]=G,I[V]=_,E=V):(I[E]=k,I[T]=_,E=T);else if(V<O&&0>o(G,_))I[E]=G,I[V]=_,E=V;else break e}}return z}function o(I,z){var _=I.sortIndex-z.sortIndex;return _!==0?_:I.id-z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var u=Date,l=u.now();e.unstable_now=function(){return u.now()-l}}var a=[],s=[],f=1,c=null,d=3,h=!1,m=!1,v=!1,S=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(I){for(var z=n(s);z!==null;){if(z.callback===null)r(s);else if(z.startTime<=I)r(s),z.sortIndex=z.expirationTime,t(a,z);else break;z=n(s)}}function w(I){if(v=!1,y(I),!m)if(n(a)!==null)m=!0,U(C);else{var z=n(s);z!==null&&N(w,z.startTime-I)}}function C(I,z){m=!1,v&&(v=!1,p(P),P=-1),h=!0;var _=d;try{for(y(z),c=n(a);c!==null&&(!(c.expirationTime>z)||I&&!W());){var E=c.callback;if(typeof E=="function"){c.callback=null,d=c.priorityLevel;var O=E(c.expirationTime<=z);z=e.unstable_now(),typeof O=="function"?c.callback=O:c===n(a)&&r(a),y(z)}else r(a);c=n(a)}if(c!==null)var A=!0;else{var T=n(s);T!==null&&N(w,T.startTime-z),A=!1}return A}finally{c=null,d=_,h=!1}}var R=!1,x=null,P=-1,$=5,M=-1;function W(){return!(e.unstable_now()-M<$)}function J(){if(x!==null){var I=e.unstable_now();M=I;var z=!0;try{z=x(!0,I)}finally{z?j():(R=!1,x=null)}}else R=!1}var j;if(typeof g=="function")j=function(){g(J)};else if(typeof MessageChannel!="undefined"){var L=new MessageChannel,F=L.port2;L.port1.onmessage=J,j=function(){F.postMessage(null)}}else j=function(){S(J,0)};function U(I){x=I,R||(R=!0,j())}function N(I,z){P=S(function(){I(e.unstable_now())},z)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,U(C))},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(a)},e.unstable_next=function(I){switch(d){case 1:case 2:case 3:var z=3;break;default:z=d}var _=d;d=z;try{return I()}finally{d=_}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(I,z){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var _=d;d=I;try{return z()}finally{d=_}},e.unstable_scheduleCallback=function(I,z,_){var E=e.unstable_now();switch(typeof _=="object"&&_!==null?(_=_.delay,_=typeof _=="number"&&0<_?E+_:E):_=E,I){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=_+O,I={id:f++,callback:z,priorityLevel:I,startTime:_,expirationTime:O,sortIndex:-1},_>E?(I.sortIndex=_,t(s,I),n(a)===null&&I===n(s)&&(v?(p(P),P=-1):v=!0,N(w,_-E))):(I.sortIndex=O,t(a,I),m||h||(m=!0,U(C))),I},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(I){var z=d;return function(){var _=d;d=z;try{return I.apply(this,arguments)}finally{d=_}}}})(Vd);jd.exports=Vd;/**
18- * @license React
19- * react-dom.production.min.js
20- *
21- * Copyright (c) Facebook, Inc. and its affiliates.
22- *
23- * This source code is licensed under the MIT license found in the
24- * LICENSE file in the root directory of this source tree.
25- */var Ud=D.exports,je=jd.exports;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Gd=new Set,Xr={};function $n(e,t){tr(e,t),tr(e+"Capture",t)}function tr(e,t){for(Xr[e]=t,e=0;e<t.length;e++)Gd.add(t[e])}var $t=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),El=Object.prototype.hasOwnProperty,Mh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,df={},pf={};function Ah(e){return El.call(pf,e)?!0:El.call(df,e)?!1:Mh.test(e)?pf[e]=!0:(df[e]=!0,!1)}function Th(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Fh(e,t,n,r){if(t===null||typeof t=="undefined"||Th(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $e(e,t,n,r,o,i,u){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=u}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new $e(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new $e(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new $e(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new $e(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ye[e]=new $e(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new $e(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new $e(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new $e(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new $e(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ya=/[\-:]([a-z])/g;function Qa(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ya,Qa);ye[t]=new $e(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ya,Qa);ye[t]=new $e(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ya,Qa);ye[t]=new $e(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new $e(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new $e("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new $e(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ja(e,t,n,r){var o=ye.hasOwnProperty(t)?ye[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Fh(t,n,o,r)&&(n=null),r||o===null?Ah(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Tt=Ud.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zo=Symbol.for("react.element"),Dn=Symbol.for("react.portal"),Nn=Symbol.for("react.fragment"),Xa=Symbol.for("react.strict_mode"),Pl=Symbol.for("react.profiler"),Wd=Symbol.for("react.provider"),Bd=Symbol.for("react.context"),Za=Symbol.for("react.forward_ref"),xl=Symbol.for("react.suspense"),Ol=Symbol.for("react.suspense_list"),es=Symbol.for("react.memo"),Nt=Symbol.for("react.lazy"),qd=Symbol.for("react.offscreen"),gf=Symbol.iterator;function Cr(e){return e===null||typeof e!="object"?null:(e=gf&&e[gf]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Object.assign,Au;function Tr(e){if(Au===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Au=t&&t[1]||""}return`
26-`+Au+e}var Tu=!1;function Fu(e,t){if(!e||Tu)return"";Tu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(s){var r=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){r=s}e.call(t.prototype)}else{try{throw Error()}catch(s){r=s}e()}}catch(s){if(s&&r&&typeof s.stack=="string"){for(var o=s.stack.split(`
27-`),i=r.stack.split(`
28-`),u=o.length-1,l=i.length-1;1<=u&&0<=l&&o[u]!==i[l];)l--;for(;1<=u&&0<=l;u--,l--)if(o[u]!==i[l]){if(u!==1||l!==1)do if(u--,l--,0>l||o[u]!==i[l]){var a=`
29-`+o[u].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=u&&0<=l);break}}}finally{Tu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Tr(e):""}function bh(e){switch(e.tag){case 5:return Tr(e.type);case 16:return Tr("Lazy");case 13:return Tr("Suspense");case 19:return Tr("SuspenseList");case 0:case 2:case 15:return e=Fu(e.type,!1),e;case 11:return e=Fu(e.type.render,!1),e;case 1:return e=Fu(e.type,!0),e;default:return""}}function Il(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Nn:return"Fragment";case Dn:return"Portal";case Pl:return"Profiler";case Xa:return"StrictMode";case xl:return"Suspense";case Ol:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Bd:return(e.displayName||"Context")+".Consumer";case Wd:return(e._context.displayName||"Context")+".Provider";case Za:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case es:return t=e.displayName||null,t!==null?t:Il(e.type)||"Memo";case Nt:t=e._payload,e=e._init;try{return Il(e(t))}catch{}}return null}function zh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Il(t);case 8:return t===Xa?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Lh(e){var t=Kd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n!="undefined"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(u){r=""+u,i.call(this,u)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(u){r=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Lo(e){e._valueTracker||(e._valueTracker=Lh(e))}function Yd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Kd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function xi(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch{return e.body}}function $l(e,t){var n=t.checked;return ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n!=null?n:e._wrapperState.initialChecked})}function vf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Qd(e,t){t=t.checked,t!=null&&Ja(e,"checked",t,!1)}function kl(e,t){Qd(e,t);var n=Zt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Ml(e,t.type,n):t.hasOwnProperty("defaultValue")&&Ml(e,t.type,Zt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function hf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Ml(e,t,n){(t!=="number"||xi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Fr=Array.isArray;function Yn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Zt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Al(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(b(91));return ue({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function mf(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(b(92));if(Fr(n)){if(1<n.length)throw Error(b(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Zt(n)}}function Jd(e,t){var n=Zt(t.value),r=Zt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function yf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Xd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Tl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Xd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Do,Zd=function(e){return typeof MSApp!="undefined"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Do=Do||document.createElement("div"),Do.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Do.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Dr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dh=["Webkit","ms","Moz","O"];Object.keys(Dr).forEach(function(e){Dh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Dr[t]=Dr[e]})});function ep(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Dr.hasOwnProperty(e)&&Dr[e]?(""+t).trim():t+"px"}function tp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=ep(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Nh=ue({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Fl(e,t){if(t){if(Nh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(b(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(b(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(b(61))}if(t.style!=null&&typeof t.style!="object")throw Error(b(62))}}function bl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var zl=null;function ts(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ll=null,Qn=null,Jn=null;function wf(e){if(e=ko(e)){if(typeof Ll!="function")throw Error(b(280));var t=e.stateNode;t&&(t=lu(t),Ll(e.stateNode,e.type,t))}}function np(e){Qn?Jn?Jn.push(e):Jn=[e]:Qn=e}function rp(){if(Qn){var e=Qn,t=Jn;if(Jn=Qn=null,wf(e),t)for(e=0;e<t.length;e++)wf(t[e])}}function op(e,t){return e(t)}function ip(){}var bu=!1;function up(e,t,n){if(bu)return e(t,n);bu=!0;try{return op(e,t,n)}finally{bu=!1,(Qn!==null||Jn!==null)&&(ip(),rp())}}function eo(e,t){var n=e.stateNode;if(n===null)return null;var r=lu(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(b(231,t,typeof n));return n}var Dl=!1;if($t)try{var _r={};Object.defineProperty(_r,"passive",{get:function(){Dl=!0}}),window.addEventListener("test",_r,_r),window.removeEventListener("test",_r,_r)}catch{Dl=!1}function Hh(e,t,n,r,o,i,u,l,a){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(f){this.onError(f)}}var Nr=!1,Oi=null,Ii=!1,Nl=null,jh={onError:function(e){Nr=!0,Oi=e}};function Vh(e,t,n,r,o,i,u,l,a){Nr=!1,Oi=null,Hh.apply(jh,arguments)}function Uh(e,t,n,r,o,i,u,l,a){if(Vh.apply(this,arguments),Nr){if(Nr){var s=Oi;Nr=!1,Oi=null}else throw Error(b(198));Ii||(Ii=!0,Nl=s)}}function kn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function lp(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Sf(e){if(kn(e)!==e)throw Error(b(188))}function Gh(e){var t=e.alternate;if(!t){if(t=kn(e),t===null)throw Error(b(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Sf(o),e;if(i===r)return Sf(o),t;i=i.sibling}throw Error(b(188))}if(n.return!==r.return)n=o,r=i;else{for(var u=!1,l=o.child;l;){if(l===n){u=!0,n=o,r=i;break}if(l===r){u=!0,r=o,n=i;break}l=l.sibling}if(!u){for(l=i.child;l;){if(l===n){u=!0,n=i,r=o;break}if(l===r){u=!0,r=i,n=o;break}l=l.sibling}if(!u)throw Error(b(189))}}if(n.alternate!==r)throw Error(b(190))}if(n.tag!==3)throw Error(b(188));return n.stateNode.current===n?e:t}function ap(e){return e=Gh(e),e!==null?sp(e):null}function sp(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=sp(e);if(t!==null)return t;e=e.sibling}return null}var fp=je.unstable_scheduleCallback,Cf=je.unstable_cancelCallback,Wh=je.unstable_shouldYield,Bh=je.unstable_requestPaint,se=je.unstable_now,qh=je.unstable_getCurrentPriorityLevel,ns=je.unstable_ImmediatePriority,cp=je.unstable_UserBlockingPriority,$i=je.unstable_NormalPriority,Kh=je.unstable_LowPriority,dp=je.unstable_IdlePriority,ru=null,gt=null;function Yh(e){if(gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(ru,e,void 0,(e.current.flags&128)===128)}catch{}}var it=Math.clz32?Math.clz32:Xh,Qh=Math.log,Jh=Math.LN2;function Xh(e){return e>>>=0,e===0?32:31-(Qh(e)/Jh|0)|0}var No=64,Ho=4194304;function br(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ki(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,u=n&268435455;if(u!==0){var l=u&~o;l!==0?r=br(l):(i&=u,i!==0&&(r=br(i)))}else u=n&~o,u!==0?r=br(u):i!==0&&(r=br(i));if(r===0)return 0;if(t!==0&&t!==r&&(t&o)===0&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-it(t),o=1<<n,r|=e[n],t&=~o;return r}function Zh(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function em(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var u=31-it(i),l=1<<u,a=o[u];a===-1?((l&n)===0||(l&r)!==0)&&(o[u]=Zh(l,t)):a<=t&&(e.expiredLanes|=l),i&=~l}}function Hl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function zu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Io(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function tm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-it(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function rs(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var X=0;function pp(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var gp,os,vp,hp,mp,jl=!1,jo=[],Bt=null,qt=null,Kt=null,to=new Map,no=new Map,jt=[],nm="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _f(e,t){switch(e){case"focusin":case"focusout":Bt=null;break;case"dragenter":case"dragleave":qt=null;break;case"mouseover":case"mouseout":Kt=null;break;case"pointerover":case"pointerout":to.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":no.delete(t.pointerId)}}function Rr(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=ko(t),t!==null&&os(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function rm(e,t,n,r,o){switch(t){case"focusin":return Bt=Rr(Bt,e,t,n,r,o),!0;case"dragenter":return qt=Rr(qt,e,t,n,r,o),!0;case"mouseover":return Kt=Rr(Kt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return to.set(i,Rr(to.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,no.set(i,Rr(no.get(i)||null,e,t,n,r,o)),!0}return!1}function yp(e){var t=hn(e.target);if(t!==null){var n=kn(t);if(n!==null){if(t=n.tag,t===13){if(t=lp(n),t!==null){e.blockedOn=t,mp(e.priority,function(){vp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function di(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Vl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);zl=r,n.target.dispatchEvent(r),zl=null}else return t=ko(n),t!==null&&os(t),e.blockedOn=n,!1;t.shift()}return!0}function Rf(e,t,n){di(e)&&n.delete(t)}function om(){jl=!1,Bt!==null&&di(Bt)&&(Bt=null),qt!==null&&di(qt)&&(qt=null),Kt!==null&&di(Kt)&&(Kt=null),to.forEach(Rf),no.forEach(Rf)}function Er(e,t){e.blockedOn===t&&(e.blockedOn=null,jl||(jl=!0,je.unstable_scheduleCallback(je.unstable_NormalPriority,om)))}function ro(e){function t(o){return Er(o,e)}if(0<jo.length){Er(jo[0],e);for(var n=1;n<jo.length;n++){var r=jo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Bt!==null&&Er(Bt,e),qt!==null&&Er(qt,e),Kt!==null&&Er(Kt,e),to.forEach(t),no.forEach(t),n=0;n<jt.length;n++)r=jt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&(n=jt[0],n.blockedOn===null);)yp(n),n.blockedOn===null&&jt.shift()}var Xn=Tt.ReactCurrentBatchConfig;function im(e,t,n,r){var o=X,i=Xn.transition;Xn.transition=null;try{X=1,is(e,t,n,r)}finally{X=o,Xn.transition=i}}function um(e,t,n,r){var o=X,i=Xn.transition;Xn.transition=null;try{X=4,is(e,t,n,r)}finally{X=o,Xn.transition=i}}function is(e,t,n,r){var o=Vl(e,t,n,r);if(o===null)Bu(e,t,r,Mi,n),_f(e,r);else if(rm(o,e,t,n,r))r.stopPropagation();else if(_f(e,r),t&4&&-1<nm.indexOf(e)){for(;o!==null;){var i=ko(o);if(i!==null&&gp(i),i=Vl(e,t,n,r),i===null&&Bu(e,t,r,Mi,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Bu(e,t,r,null,n)}var Mi=null;function Vl(e,t,n,r){if(Mi=null,e=ts(r),e=hn(e),e!==null)if(t=kn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=lp(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Mi=e,null}function wp(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(qh()){case ns:return 1;case cp:return 4;case $i:case Kh:return 16;case dp:return 536870912;default:return 16}default:return 16}}var Ut=null,us=null,pi=null;function Sp(){if(pi)return pi;var e,t=us,n=t.length,r,o="value"in Ut?Ut.value:Ut.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var u=n-e;for(r=1;r<=u&&t[n-r]===o[i-r];r++);return pi=o.slice(e,1<r?1-r:void 0)}function gi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vo(){return!0}function Ef(){return!1}function We(e){function t(n,r,o,i,u){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=u,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Vo:Ef,this.isPropagationStopped=Ef,this}return ue(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Vo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Vo)},persist:function(){},isPersistent:Vo}),t}var gr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ls=We(gr),$o=ue({},gr,{view:0,detail:0}),lm=We($o),Lu,Du,Pr,ou=ue({},$o,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:as,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Pr&&(Pr&&e.type==="mousemove"?(Lu=e.screenX-Pr.screenX,Du=e.screenY-Pr.screenY):Du=Lu=0,Pr=e),Lu)},movementY:function(e){return"movementY"in e?e.movementY:Du}}),Pf=We(ou),am=ue({},ou,{dataTransfer:0}),sm=We(am),fm=ue({},$o,{relatedTarget:0}),Nu=We(fm),cm=ue({},gr,{animationName:0,elapsedTime:0,pseudoElement:0}),dm=We(cm),pm=ue({},gr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gm=We(pm),vm=ue({},gr,{data:0}),xf=We(vm),hm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mm={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ym={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ym[e])?!!t[e]:!1}function as(){return wm}var Sm=ue({},$o,{key:function(e){if(e.key){var t=hm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=gi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?mm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:as,charCode:function(e){return e.type==="keypress"?gi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Cm=We(Sm),_m=ue({},ou,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Of=We(_m),Rm=ue({},$o,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:as}),Em=We(Rm),Pm=ue({},gr,{propertyName:0,elapsedTime:0,pseudoElement:0}),xm=We(Pm),Om=ue({},ou,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Im=We(Om),$m=[9,13,27,32],ss=$t&&"CompositionEvent"in window,Hr=null;$t&&"documentMode"in document&&(Hr=document.documentMode);var km=$t&&"TextEvent"in window&&!Hr,Cp=$t&&(!ss||Hr&&8<Hr&&11>=Hr),If=String.fromCharCode(32),$f=!1;function _p(e,t){switch(e){case"keyup":return $m.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function Mm(e,t){switch(e){case"compositionend":return Rp(t);case"keypress":return t.which!==32?null:($f=!0,If);case"textInput":return e=t.data,e===If&&$f?null:e;default:return null}}function Am(e,t){if(Hn)return e==="compositionend"||!ss&&_p(e,t)?(e=Sp(),pi=us=Ut=null,Hn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cp&&t.locale!=="ko"?null:t.data;default:return null}}var Tm={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function kf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Tm[e.type]:t==="textarea"}function Ep(e,t,n,r){np(r),t=Ai(t,"onChange"),0<t.length&&(n=new ls("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var jr=null,oo=null;function Fm(e){bp(e,0)}function iu(e){var t=Un(e);if(Yd(t))return e}function bm(e,t){if(e==="change")return t}var Pp=!1;if($t){var Hu;if($t){var ju="oninput"in document;if(!ju){var Mf=document.createElement("div");Mf.setAttribute("oninput","return;"),ju=typeof Mf.oninput=="function"}Hu=ju}else Hu=!1;Pp=Hu&&(!document.documentMode||9<document.documentMode)}function Af(){jr&&(jr.detachEvent("onpropertychange",xp),oo=jr=null)}function xp(e){if(e.propertyName==="value"&&iu(oo)){var t=[];Ep(t,oo,e,ts(e)),up(Fm,t)}}function zm(e,t,n){e==="focusin"?(Af(),jr=t,oo=n,jr.attachEvent("onpropertychange",xp)):e==="focusout"&&Af()}function Lm(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return iu(oo)}function Dm(e,t){if(e==="click")return iu(t)}function Nm(e,t){if(e==="input"||e==="change")return iu(t)}function Hm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mt=typeof Object.is=="function"?Object.is:Hm;function io(e,t){if(mt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!El.call(t,o)||!mt(e[o],t[o]))return!1}return!0}function Tf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ff(e,t){var n=Tf(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Tf(n)}}function Op(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Op(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ip(){for(var e=window,t=xi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=xi(e.document)}return t}function fs(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function jm(e){var t=Ip(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Op(n.ownerDocument.documentElement,n)){if(r!==null&&fs(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Ff(n,i);var u=Ff(n,r);o&&u&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(u.node,u.offset)):(t.setEnd(u.node,u.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Vm=$t&&"documentMode"in document&&11>=document.documentMode,jn=null,Ul=null,Vr=null,Gl=!1;function bf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Gl||jn==null||jn!==xi(r)||(r=jn,"selectionStart"in r&&fs(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Vr&&io(Vr,r)||(Vr=r,r=Ai(Ul,"onSelect"),0<r.length&&(t=new ls("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jn)))}function Uo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Vn={animationend:Uo("Animation","AnimationEnd"),animationiteration:Uo("Animation","AnimationIteration"),animationstart:Uo("Animation","AnimationStart"),transitionend:Uo("Transition","TransitionEnd")},Vu={},$p={};$t&&($p=document.createElement("div").style,"AnimationEvent"in window||(delete Vn.animationend.animation,delete Vn.animationiteration.animation,delete Vn.animationstart.animation),"TransitionEvent"in window||delete Vn.transitionend.transition);function uu(e){if(Vu[e])return Vu[e];if(!Vn[e])return e;var t=Vn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $p)return Vu[e]=t[n];return e}var kp=uu("animationend"),Mp=uu("animationiteration"),Ap=uu("animationstart"),Tp=uu("transitionend"),Fp=new Map,zf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function un(e,t){Fp.set(e,t),$n(t,[e])}for(var Uu=0;Uu<zf.length;Uu++){var Gu=zf[Uu],Um=Gu.toLowerCase(),Gm=Gu[0].toUpperCase()+Gu.slice(1);un(Um,"on"+Gm)}un(kp,"onAnimationEnd");un(Mp,"onAnimationIteration");un(Ap,"onAnimationStart");un("dblclick","onDoubleClick");un("focusin","onFocus");un("focusout","onBlur");un(Tp,"onTransitionEnd");tr("onMouseEnter",["mouseout","mouseover"]);tr("onMouseLeave",["mouseout","mouseover"]);tr("onPointerEnter",["pointerout","pointerover"]);tr("onPointerLeave",["pointerout","pointerover"]);$n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$n("onBeforeInput",["compositionend","keypress","textInput","paste"]);$n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Wm=new Set("cancel close invalid load scroll toggle".split(" ").concat(zr));function Lf(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Uh(r,t,void 0,e),e.currentTarget=null}function bp(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var u=r.length-1;0<=u;u--){var l=r[u],a=l.instance,s=l.currentTarget;if(l=l.listener,a!==i&&o.isPropagationStopped())break e;Lf(o,l,s),i=a}else for(u=0;u<r.length;u++){if(l=r[u],a=l.instance,s=l.currentTarget,l=l.listener,a!==i&&o.isPropagationStopped())break e;Lf(o,l,s),i=a}}}if(Ii)throw e=Nl,Ii=!1,Nl=null,e}function te(e,t){var n=t[Kl];n===void 0&&(n=t[Kl]=new Set);var r=e+"__bubble";n.has(r)||(zp(t,e,2,!1),n.add(r))}function Wu(e,t,n){var r=0;t&&(r|=4),zp(n,e,r,t)}var Go="_reactListening"+Math.random().toString(36).slice(2);function uo(e){if(!e[Go]){e[Go]=!0,Gd.forEach(function(n){n!=="selectionchange"&&(Wm.has(n)||Wu(n,!1,e),Wu(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Go]||(t[Go]=!0,Wu("selectionchange",!1,t))}}function zp(e,t,n,r){switch(wp(t)){case 1:var o=im;break;case 4:o=um;break;default:o=is}n=o.bind(null,t,n,e),o=void 0,!Dl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Bu(e,t,n,r,o){var i=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var u=r.tag;if(u===3||u===4){var l=r.stateNode.containerInfo;if(l===o||l.nodeType===8&&l.parentNode===o)break;if(u===4)for(u=r.return;u!==null;){var a=u.tag;if((a===3||a===4)&&(a=u.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;u=u.return}for(;l!==null;){if(u=hn(l),u===null)return;if(a=u.tag,a===5||a===6){r=i=u;continue e}l=l.parentNode}}r=r.return}up(function(){var s=i,f=ts(n),c=[];e:{var d=Fp.get(e);if(d!==void 0){var h=ls,m=e;switch(e){case"keypress":if(gi(n)===0)break e;case"keydown":case"keyup":h=Cm;break;case"focusin":m="focus",h=Nu;break;case"focusout":m="blur",h=Nu;break;case"beforeblur":case"afterblur":h=Nu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Pf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=sm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Em;break;case kp:case Mp:case Ap:h=dm;break;case Tp:h=xm;break;case"scroll":h=lm;break;case"wheel":h=Im;break;case"copy":case"cut":case"paste":h=gm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Of}var v=(t&4)!==0,S=!v&&e==="scroll",p=v?d!==null?d+"Capture":null:d;v=[];for(var g=s,y;g!==null;){y=g;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,p!==null&&(w=eo(g,p),w!=null&&v.push(lo(g,w,y)))),S)break;g=g.return}0<v.length&&(d=new h(d,m,null,n,f),c.push({event:d,listeners:v}))}}if((t&7)===0){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==zl&&(m=n.relatedTarget||n.fromElement)&&(hn(m)||m[kt]))break e;if((h||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,h?(m=n.relatedTarget||n.toElement,h=s,m=m?hn(m):null,m!==null&&(S=kn(m),m!==S||m.tag!==5&&m.tag!==6)&&(m=null)):(h=null,m=s),h!==m)){if(v=Pf,w="onMouseLeave",p="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(v=Of,w="onPointerLeave",p="onPointerEnter",g="pointer"),S=h==null?d:Un(h),y=m==null?d:Un(m),d=new v(w,g+"leave",h,n,f),d.target=S,d.relatedTarget=y,w=null,hn(f)===s&&(v=new v(p,g+"enter",m,n,f),v.target=y,v.relatedTarget=S,w=v),S=w,h&&m)t:{for(v=h,p=m,g=0,y=v;y;y=Fn(y))g++;for(y=0,w=p;w;w=Fn(w))y++;for(;0<g-y;)v=Fn(v),g--;for(;0<y-g;)p=Fn(p),y--;for(;g--;){if(v===p||p!==null&&v===p.alternate)break t;v=Fn(v),p=Fn(p)}v=null}else v=null;h!==null&&Df(c,d,h,v,!1),m!==null&&S!==null&&Df(c,S,m,v,!0)}}e:{if(d=s?Un(s):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var C=bm;else if(kf(d))if(Pp)C=Nm;else{C=Lm;var R=zm}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(C=Dm);if(C&&(C=C(e,s))){Ep(c,C,n,f);break e}R&&R(e,d,s),e==="focusout"&&(R=d._wrapperState)&&R.controlled&&d.type==="number"&&Ml(d,"number",d.value)}switch(R=s?Un(s):window,e){case"focusin":(kf(R)||R.contentEditable==="true")&&(jn=R,Ul=s,Vr=null);break;case"focusout":Vr=Ul=jn=null;break;case"mousedown":Gl=!0;break;case"contextmenu":case"mouseup":case"dragend":Gl=!1,bf(c,n,f);break;case"selectionchange":if(Vm)break;case"keydown":case"keyup":bf(c,n,f)}var x;if(ss)e:{switch(e){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Hn?_p(e,n)&&(P="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(P="onCompositionStart");P&&(Cp&&n.locale!=="ko"&&(Hn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Hn&&(x=Sp()):(Ut=f,us="value"in Ut?Ut.value:Ut.textContent,Hn=!0)),R=Ai(s,P),0<R.length&&(P=new xf(P,e,null,n,f),c.push({event:P,listeners:R}),x?P.data=x:(x=Rp(n),x!==null&&(P.data=x)))),(x=km?Mm(e,n):Am(e,n))&&(s=Ai(s,"onBeforeInput"),0<s.length&&(f=new xf("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:s}),f.data=x))}bp(c,t)})}function lo(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ai(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=eo(e,n),i!=null&&r.unshift(lo(e,i,o)),i=eo(e,t),i!=null&&r.push(lo(e,i,o))),e=e.return}return r}function Fn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Df(e,t,n,r,o){for(var i=t._reactName,u=[];n!==null&&n!==r;){var l=n,a=l.alternate,s=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&s!==null&&(l=s,o?(a=eo(n,i),a!=null&&u.unshift(lo(n,a,l))):o||(a=eo(n,i),a!=null&&u.push(lo(n,a,l)))),n=n.return}u.length!==0&&e.push({event:t,listeners:u})}var Bm=/\r\n?/g,qm=/\u0000|\uFFFD/g;function Nf(e){return(typeof e=="string"?e:""+e).replace(Bm,`
30-`).replace(qm,"")}function Wo(e,t,n){if(t=Nf(t),Nf(e)!==t&&n)throw Error(b(425))}function Ti(){}var Wl=null;function Bl(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var ql=typeof setTimeout=="function"?setTimeout:void 0,Km=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Ym=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf!="undefined"?function(e){return Hf.resolve(null).then(e).catch(Qm)}:ql;function Qm(e){setTimeout(function(){throw e})}function qu(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),ro(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);ro(t)}function Et(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function jf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var vr=Math.random().toString(36).slice(2),ct="__reactFiber$"+vr,ao="__reactProps$"+vr,kt="__reactContainer$"+vr,Kl="__reactEvents$"+vr,Jm="__reactListeners$"+vr,Xm="__reactHandles$"+vr;function hn(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[kt]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=jf(e);e!==null;){if(n=e[ct])return n;e=jf(e)}return t}e=n,n=e.parentNode}return null}function ko(e){return e=e[ct]||e[kt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Un(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(b(33))}function lu(e){return e[ao]||null}var Yl=[],Gn=-1;function ln(e){return{current:e}}function re(e){0>Gn||(e.current=Yl[Gn],Yl[Gn]=null,Gn--)}function ee(e,t){Gn++,Yl[Gn]=e.current,e.current=t}var en={},Re=ln(en),Te=ln(!1),En=en;function nr(e,t){var n=e.type.contextTypes;if(!n)return en;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Fe(e){return e=e.childContextTypes,e!=null}function Fi(){re(Te),re(Re)}function Vf(e,t,n){if(Re.current!==en)throw Error(b(168));ee(Re,t),ee(Te,n)}function Lp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(b(108,zh(e)||"Unknown",o));return ue({},n,r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||en,En=Re.current,ee(Re,e),ee(Te,Te.current),!0}function Uf(e,t,n){var r=e.stateNode;if(!r)throw Error(b(169));n?(e=Lp(e,t,En),r.__reactInternalMemoizedMergedChildContext=e,re(Te),re(Re),ee(Re,e)):re(Te),ee(Te,n)}var Rt=null,au=!1,Ku=!1;function Dp(e){Rt===null?Rt=[e]:Rt.push(e)}function Zm(e){au=!0,Dp(e)}function an(){if(!Ku&&Rt!==null){Ku=!0;var e=0,t=X;try{var n=Rt;for(X=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Rt=null,au=!1}catch(o){throw Rt!==null&&(Rt=Rt.slice(e+1)),fp(ns,an),o}finally{X=t,Ku=!1}}return null}var ey=Tt.ReactCurrentBatchConfig;function nt(e,t){if(e&&e.defaultProps){t=ue({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var zi=ln(null),Li=null,Wn=null,cs=null;function ds(){cs=Wn=Li=null}function ps(e){var t=zi.current;re(zi),e._currentValue=t}function Ql(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zn(e,t){Li=e,cs=Wn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ne=!0),e.firstContext=null)}function et(e){var t=e._currentValue;if(cs!==e)if(e={context:e,memoizedValue:t,next:null},Wn===null){if(Li===null)throw Error(b(308));Wn=e,Li.dependencies={lanes:0,firstContext:e}}else Wn=Wn.next=e;return t}var dt=null,Ht=!1;function gs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Np(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ot(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Yt(e,t){var n=e.updateQueue;n!==null&&(n=n.shared,ce!==null&&(e.mode&1)!==0&&(Y&2)===0?(e=n.interleaved,e===null?(t.next=t,dt===null?dt=[n]:dt.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(e=n.pending,e===null?t.next=t:(t.next=e.next,e.next=t),n.pending=t))}function vi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rs(e,n)}}function Gf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var u={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=u:i=i.next=u,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Di(e,t,n,r){var o=e.updateQueue;Ht=!1;var i=o.firstBaseUpdate,u=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,s=a.next;a.next=null,u===null?i=s:u.next=s,u=a;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==u&&(l===null?f.firstBaseUpdate=s:l.next=s,f.lastBaseUpdate=a))}if(i!==null){var c=o.baseState;u=0,f=s=a=null,l=i;do{var d=l.lane,h=l.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:h,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,v=l;switch(d=t,h=n,v.tag){case 1:if(m=v.payload,typeof m=="function"){c=m.call(h,c,d);break e}c=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,d=typeof m=="function"?m.call(h,c,d):m,d==null)break e;c=ue({},c,d);break e;case 2:Ht=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,d=o.effects,d===null?o.effects=[l]:d.push(l))}else h={eventTime:h,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(s=f=h,a=c):f=f.next=h,u|=d;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;d=l,l=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(f===null&&(a=c),o.baseState=a,o.firstBaseUpdate=s,o.lastBaseUpdate=f,t=o.shared.interleaved,t!==null){o=t;do u|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);lr|=u,e.lanes=u,e.memoizedState=c}}function Wf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(b(191,o));o.call(r)}}}var Hp=new Ud.Component().refs;function Jl(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ue({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var su={isMounted:function(e){return(e=e._reactInternals)?kn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Oe(),o=Jt(e),i=Ot(r,o);i.payload=t,n!=null&&(i.callback=n),Yt(e,i),t=Xe(e,o,r),t!==null&&vi(t,e,o)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Oe(),o=Jt(e),i=Ot(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),Yt(e,i),t=Xe(e,o,r),t!==null&&vi(t,e,o)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Oe(),r=Jt(e),o=Ot(n,r);o.tag=2,t!=null&&(o.callback=t),Yt(e,o),t=Xe(e,r,n),t!==null&&vi(t,e,r)}};function Bf(e,t,n,r,o,i,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,u):t.prototype&&t.prototype.isPureReactComponent?!io(n,r)||!io(o,i):!0}function jp(e,t,n){var r=!1,o=en,i=t.contextType;return typeof i=="object"&&i!==null?i=et(i):(o=Fe(t)?En:Re.current,r=t.contextTypes,i=(r=r!=null)?nr(e,o):en),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=su,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function qf(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&su.enqueueReplaceState(t,t.state,null)}function Xl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Hp,gs(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=et(i):(i=Fe(t)?En:Re.current,o.context=nr(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Jl(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&su.enqueueReplaceState(o,o.state,null),Di(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}var Bn=[],qn=0,Ni=null,Hi=0,qe=[],Ke=0,Pn=null,Pt=1,xt="";function fn(e,t){Bn[qn++]=Hi,Bn[qn++]=Ni,Ni=e,Hi=t}function Vp(e,t,n){qe[Ke++]=Pt,qe[Ke++]=xt,qe[Ke++]=Pn,Pn=e;var r=Pt;e=xt;var o=32-it(r)-1;r&=~(1<<o),n+=1;var i=32-it(t)+o;if(30<i){var u=o-o%5;i=(r&(1<<u)-1).toString(32),r>>=u,o-=u,Pt=1<<32-it(t)+o|n<<o|r,xt=i+e}else Pt=1<<i|n<<o|r,xt=e}function vs(e){e.return!==null&&(fn(e,1),Vp(e,1,0))}function hs(e){for(;e===Ni;)Ni=Bn[--qn],Bn[qn]=null,Hi=Bn[--qn],Bn[qn]=null;for(;e===Pn;)Pn=qe[--Ke],qe[Ke]=null,xt=qe[--Ke],qe[Ke]=null,Pt=qe[--Ke],qe[Ke]=null}var He=null,Me=null,oe=!1,rt=null;function Up(e,t){var n=Ye(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Kf(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,He=e,Me=Et(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,He=e,Me=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Pn!==null?{id:Pt,overflow:xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ye(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,He=e,Me=null,!0):!1;default:return!1}}function Zl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function ea(e){if(oe){var t=Me;if(t){var n=t;if(!Kf(e,t)){if(Zl(e))throw Error(b(418));t=Et(n.nextSibling);var r=He;t&&Kf(e,t)?Up(r,n):(e.flags=e.flags&-4097|2,oe=!1,He=e)}}else{if(Zl(e))throw Error(b(418));e.flags=e.flags&-4097|2,oe=!1,He=e}}}function Yf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;He=e}function xr(e){if(e!==He)return!1;if(!oe)return Yf(e),oe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Bl(e.type,e.memoizedProps)),t&&(t=Me)){if(Zl(e)){for(e=Me;e;)e=Et(e.nextSibling);throw Error(b(418))}for(;t;)Up(e,t),t=Et(t.nextSibling)}if(Yf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(b(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Me=Et(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Me=null}}else Me=He?Et(e.stateNode.nextSibling):null;return!0}function rr(){Me=He=null,oe=!1}function ms(e){rt===null?rt=[e]:rt.push(e)}function Or(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(b(309));var r=n.stateNode}if(!r)throw Error(b(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(u){var l=o.refs;l===Hp&&(l=o.refs={}),u===null?delete l[i]:l[i]=u},t._stringRef=i,t)}if(typeof e!="string")throw Error(b(284));if(!n._owner)throw Error(b(290,e))}return e}function Bo(e,t){throw e=Object.prototype.toString.call(t),Error(b(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qf(e){var t=e._init;return t(e._payload)}function Gp(e){function t(p,g){if(e){var y=p.deletions;y===null?(p.deletions=[g],p.flags|=16):y.push(g)}}function n(p,g){if(!e)return null;for(;g!==null;)t(p,g),g=g.sibling;return null}function r(p,g){for(p=new Map;g!==null;)g.key!==null?p.set(g.key,g):p.set(g.index,g),g=g.sibling;return p}function o(p,g){return p=tn(p,g),p.index=0,p.sibling=null,p}function i(p,g,y){return p.index=y,e?(y=p.alternate,y!==null?(y=y.index,y<g?(p.flags|=2,g):y):(p.flags|=2,g)):(p.flags|=1048576,g)}function u(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,g,y,w){return g===null||g.tag!==6?(g=el(y,p.mode,w),g.return=p,g):(g=o(g,y),g.return=p,g)}function a(p,g,y,w){var C=y.type;return C===Nn?f(p,g,y.props.children,w,y.key):g!==null&&(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nt&&Qf(C)===g.type)?(w=o(g,y.props),w.ref=Or(p,g,y),w.return=p,w):(w=Si(y.type,y.key,y.props,null,p.mode,w),w.ref=Or(p,g,y),w.return=p,w)}function s(p,g,y,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=tl(y,p.mode,w),g.return=p,g):(g=o(g,y.children||[]),g.return=p,g)}function f(p,g,y,w,C){return g===null||g.tag!==7?(g=Rn(y,p.mode,w,C),g.return=p,g):(g=o(g,y),g.return=p,g)}function c(p,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=el(""+g,p.mode,y),g.return=p,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case zo:return y=Si(g.type,g.key,g.props,null,p.mode,y),y.ref=Or(p,null,g),y.return=p,y;case Dn:return g=tl(g,p.mode,y),g.return=p,g;case Nt:var w=g._init;return c(p,w(g._payload),y)}if(Fr(g)||Cr(g))return g=Rn(g,p.mode,y,null),g.return=p,g;Bo(p,g)}return null}function d(p,g,y,w){var C=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return C!==null?null:l(p,g,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case zo:return y.key===C?a(p,g,y,w):null;case Dn:return y.key===C?s(p,g,y,w):null;case Nt:return C=y._init,d(p,g,C(y._payload),w)}if(Fr(y)||Cr(y))return C!==null?null:f(p,g,y,w,null);Bo(p,y)}return null}function h(p,g,y,w,C){if(typeof w=="string"&&w!==""||typeof w=="number")return p=p.get(y)||null,l(g,p,""+w,C);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case zo:return p=p.get(w.key===null?y:w.key)||null,a(g,p,w,C);case Dn:return p=p.get(w.key===null?y:w.key)||null,s(g,p,w,C);case Nt:var R=w._init;return h(p,g,y,R(w._payload),C)}if(Fr(w)||Cr(w))return p=p.get(y)||null,f(g,p,w,C,null);Bo(g,w)}return null}function m(p,g,y,w){for(var C=null,R=null,x=g,P=g=0,$=null;x!==null&&P<y.length;P++){x.index>P?($=x,x=null):$=x.sibling;var M=d(p,x,y[P],w);if(M===null){x===null&&(x=$);break}e&&x&&M.alternate===null&&t(p,x),g=i(M,g,P),R===null?C=M:R.sibling=M,R=M,x=$}if(P===y.length)return n(p,x),oe&&fn(p,P),C;if(x===null){for(;P<y.length;P++)x=c(p,y[P],w),x!==null&&(g=i(x,g,P),R===null?C=x:R.sibling=x,R=x);return oe&&fn(p,P),C}for(x=r(p,x);P<y.length;P++)$=h(x,p,P,y[P],w),$!==null&&(e&&$.alternate!==null&&x.delete($.key===null?P:$.key),g=i($,g,P),R===null?C=$:R.sibling=$,R=$);return e&&x.forEach(function(W){return t(p,W)}),oe&&fn(p,P),C}function v(p,g,y,w){var C=Cr(y);if(typeof C!="function")throw Error(b(150));if(y=C.call(y),y==null)throw Error(b(151));for(var R=C=null,x=g,P=g=0,$=null,M=y.next();x!==null&&!M.done;P++,M=y.next()){x.index>P?($=x,x=null):$=x.sibling;var W=d(p,x,M.value,w);if(W===null){x===null&&(x=$);break}e&&x&&W.alternate===null&&t(p,x),g=i(W,g,P),R===null?C=W:R.sibling=W,R=W,x=$}if(M.done)return n(p,x),oe&&fn(p,P),C;if(x===null){for(;!M.done;P++,M=y.next())M=c(p,M.value,w),M!==null&&(g=i(M,g,P),R===null?C=M:R.sibling=M,R=M);return oe&&fn(p,P),C}for(x=r(p,x);!M.done;P++,M=y.next())M=h(x,p,P,M.value,w),M!==null&&(e&&M.alternate!==null&&x.delete(M.key===null?P:M.key),g=i(M,g,P),R===null?C=M:R.sibling=M,R=M);return e&&x.forEach(function(J){return t(p,J)}),oe&&fn(p,P),C}function S(p,g,y,w){if(typeof y=="object"&&y!==null&&y.type===Nn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case zo:e:{for(var C=y.key,R=g;R!==null;){if(R.key===C){if(C=y.type,C===Nn){if(R.tag===7){n(p,R.sibling),g=o(R,y.props.children),g.return=p,p=g;break e}}else if(R.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Nt&&Qf(C)===R.type){n(p,R.sibling),g=o(R,y.props),g.ref=Or(p,R,y),g.return=p,p=g;break e}n(p,R);break}else t(p,R);R=R.sibling}y.type===Nn?(g=Rn(y.props.children,p.mode,w,y.key),g.return=p,p=g):(w=Si(y.type,y.key,y.props,null,p.mode,w),w.ref=Or(p,g,y),w.return=p,p=w)}return u(p);case Dn:e:{for(R=y.key;g!==null;){if(g.key===R)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(p,g.sibling),g=o(g,y.children||[]),g.return=p,p=g;break e}else{n(p,g);break}else t(p,g);g=g.sibling}g=tl(y,p.mode,w),g.return=p,p=g}return u(p);case Nt:return R=y._init,S(p,g,R(y._payload),w)}if(Fr(y))return m(p,g,y,w);if(Cr(y))return v(p,g,y,w);Bo(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(n(p,g.sibling),g=o(g,y),g.return=p,p=g):(n(p,g),g=el(y,p.mode,w),g.return=p,p=g),u(p)):n(p,g)}return S}var or=Gp(!0),Wp=Gp(!1),Mo={},vt=ln(Mo),so=ln(Mo),fo=ln(Mo);function mn(e){if(e===Mo)throw Error(b(174));return e}function ys(e,t){switch(ee(fo,t),ee(so,e),ee(vt,Mo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Tl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Tl(t,e)}re(vt),ee(vt,t)}function ir(){re(vt),re(so),re(fo)}function Bp(e){mn(fo.current);var t=mn(vt.current),n=Tl(t,e.type);t!==n&&(ee(so,e),ee(vt,n))}function ws(e){so.current===e&&(re(vt),re(so))}var ie=ln(0);function ji(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Yu=[];function Ss(){for(var e=0;e<Yu.length;e++)Yu[e]._workInProgressVersionPrimary=null;Yu.length=0}var hi=Tt.ReactCurrentDispatcher,Qe=Tt.ReactCurrentBatchConfig,ur=0,le=null,Ce=null,ge=null,Vi=!1,Ur=!1,co=0,ty=0;function we(){throw Error(b(321))}function Cs(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!mt(e[n],t[n]))return!1;return!0}function _s(e,t,n,r,o,i){if(ur=i,le=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,hi.current=e===null||e.memoizedState===null?iy:uy,e=n(r,o),Ur){i=0;do{if(Ur=!1,co=0,25<=i)throw Error(b(301));i+=1,ge=Ce=null,t.updateQueue=null,hi.current=ly,e=n(r,o)}while(Ur)}if(hi.current=Ui,t=Ce!==null&&Ce.next!==null,ur=0,ge=Ce=le=null,Vi=!1,t)throw Error(b(300));return e}function Rs(){var e=co!==0;return co=0,e}function _t(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ge===null?le.memoizedState=ge=e:ge=ge.next=e,ge}function wt(){if(Ce===null){var e=le.alternate;e=e!==null?e.memoizedState:null}else e=Ce.next;var t=ge===null?le.memoizedState:ge.next;if(t!==null)ge=t,Ce=e;else{if(e===null)throw Error(b(310));Ce=e,e={memoizedState:Ce.memoizedState,baseState:Ce.baseState,baseQueue:Ce.baseQueue,queue:Ce.queue,next:null},ge===null?le.memoizedState=ge=e:ge=ge.next=e}return ge}function Cn(e,t){return typeof t=="function"?t(e):t}function qo(e){var t=wt(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=Ce,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var u=o.next;o.next=i.next,i.next=u}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var l=u=null,a=null,s=i;do{var f=s.lane;if((ur&f)===f)a!==null&&(a=a.next={lane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),r=s.hasEagerState?s.eagerState:e(r,s.action);else{var c={lane:f,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null};a===null?(l=a=c,u=r):a=a.next=c,le.lanes|=f,lr|=f}s=s.next}while(s!==null&&s!==i);a===null?u=r:a.next=l,mt(r,t.memoizedState)||(Ne=!0),t.memoizedState=r,t.baseState=u,t.baseQueue=a,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,le.lanes|=i,lr|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ko(e){var t=wt(),n=t.queue;if(n===null)throw Error(b(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var u=o=o.next;do i=e(i,u.action),u=u.next;while(u!==o);mt(i,t.memoizedState)||(Ne=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function qp(){}function Kp(e,t){var n=le,r=wt(),o=t(),i=!mt(r.memoizedState,o);if(i&&(r.memoizedState=o,Ne=!0),r=r.queue,go(Jp.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ge!==null&&ge.memoizedState.tag&1){if(n.flags|=2048,po(9,Qp.bind(null,n,r,o,t),void 0,null),ce===null)throw Error(b(349));(ur&30)!==0||Yp(n,t,o)}return o}function Yp(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=le.updateQueue,t===null?(t={lastEffect:null,stores:null},le.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Qp(e,t,n,r){t.value=n,t.getSnapshot=r,Xp(t)&&Xe(e,1,-1)}function Jp(e,t,n){return n(function(){Xp(t)&&Xe(e,1,-1)})}function Xp(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!mt(e,n)}catch{return!0}}function Qu(e){var t=_t();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Cn,lastRenderedState:e},t.queue=e,e=e.dispatch=oy.bind(null,le,e),[t.memoizedState,e]}function po(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=le.updateQueue,t===null?(t={lastEffect:null,stores:null},le.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Zp(){return wt().memoizedState}function mi(e,t,n,r){var o=_t();le.flags|=e,o.memoizedState=po(1|t,n,void 0,r===void 0?null:r)}function fu(e,t,n,r){var o=wt();r=r===void 0?null:r;var i=void 0;if(Ce!==null){var u=Ce.memoizedState;if(i=u.destroy,r!==null&&Cs(r,u.deps)){o.memoizedState=po(t,n,i,r);return}}le.flags|=e,o.memoizedState=po(1|t,n,i,r)}function Ju(e,t){return mi(8390656,8,e,t)}function go(e,t){return fu(2048,8,e,t)}function eg(e,t){return fu(4,2,e,t)}function tg(e,t){return fu(4,4,e,t)}function ng(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function rg(e,t,n){return n=n!=null?n.concat([e]):null,fu(4,4,ng.bind(null,t,e),n)}function Es(){}function og(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Cs(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ig(e,t){var n=wt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Cs(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ny(e,t){var n=X;X=n!==0&&4>n?n:4,e(!0);var r=Qe.transition;Qe.transition={};try{e(!1),t()}finally{X=n,Qe.transition=r}}function ug(){return wt().memoizedState}function ry(e,t,n){var r=Jt(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},lg(e)?ag(t,n):(sg(e,t,n),n=Oe(),e=Xe(e,r,n),e!==null&&fg(e,t,r))}function oy(e,t,n){var r=Jt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(lg(e))ag(t,o);else{sg(e,t,o);var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var u=t.lastRenderedState,l=i(u,n);if(o.hasEagerState=!0,o.eagerState=l,mt(l,u))return}catch{}finally{}n=Oe(),e=Xe(e,r,n),e!==null&&fg(e,t,r)}}function lg(e){var t=e.alternate;return e===le||t!==null&&t===le}function ag(e,t){Ur=Vi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function sg(e,t,n){ce!==null&&(e.mode&1)!==0&&(Y&2)===0?(e=t.interleaved,e===null?(n.next=n,dt===null?dt=[t]:dt.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function fg(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,rs(e,n)}}var Ui={readContext:et,useCallback:we,useContext:we,useEffect:we,useImperativeHandle:we,useInsertionEffect:we,useLayoutEffect:we,useMemo:we,useReducer:we,useRef:we,useState:we,useDebugValue:we,useDeferredValue:we,useTransition:we,useMutableSource:we,useSyncExternalStore:we,useId:we,unstable_isNewReconciler:!1},iy={readContext:et,useCallback:function(e,t){return _t().memoizedState=[e,t===void 0?null:t],e},useContext:et,useEffect:Ju,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,mi(4194308,4,ng.bind(null,t,e),n)},useLayoutEffect:function(e,t){return mi(4194308,4,e,t)},useInsertionEffect:function(e,t){return mi(4,2,e,t)},useMemo:function(e,t){var n=_t();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_t();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ry.bind(null,le,e),[r.memoizedState,e]},useRef:function(e){var t=_t();return e={current:e},t.memoizedState=e},useState:Qu,useDebugValue:Es,useDeferredValue:function(e){var t=Qu(e),n=t[0],r=t[1];return Ju(function(){var o=Qe.transition;Qe.transition={};try{r(e)}finally{Qe.transition=o}},[e]),n},useTransition:function(){var e=Qu(!1),t=e[0];return e=ny.bind(null,e[1]),_t().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=le,o=_t();if(oe){if(n===void 0)throw Error(b(407));n=n()}else{if(n=t(),ce===null)throw Error(b(349));(ur&30)!==0||Yp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ju(Jp.bind(null,r,i,e),[e]),r.flags|=2048,po(9,Qp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=_t(),t=ce.identifierPrefix;if(oe){var n=xt,r=Pt;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=co++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ty++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},uy={readContext:et,useCallback:og,useContext:et,useEffect:go,useImperativeHandle:rg,useInsertionEffect:eg,useLayoutEffect:tg,useMemo:ig,useReducer:qo,useRef:Zp,useState:function(){return qo(Cn)},useDebugValue:Es,useDeferredValue:function(e){var t=qo(Cn),n=t[0],r=t[1];return go(function(){var o=Qe.transition;Qe.transition={};try{r(e)}finally{Qe.transition=o}},[e]),n},useTransition:function(){var e=qo(Cn)[0],t=wt().memoizedState;return[e,t]},useMutableSource:qp,useSyncExternalStore:Kp,useId:ug,unstable_isNewReconciler:!1},ly={readContext:et,useCallback:og,useContext:et,useEffect:go,useImperativeHandle:rg,useInsertionEffect:eg,useLayoutEffect:tg,useMemo:ig,useReducer:Ko,useRef:Zp,useState:function(){return Ko(Cn)},useDebugValue:Es,useDeferredValue:function(e){var t=Ko(Cn),n=t[0],r=t[1];return go(function(){var o=Qe.transition;Qe.transition={};try{r(e)}finally{Qe.transition=o}},[e]),n},useTransition:function(){var e=Ko(Cn)[0],t=wt().memoizedState;return[e,t]},useMutableSource:qp,useSyncExternalStore:Kp,useId:ug,unstable_isNewReconciler:!1};function Ps(e,t){try{var n="",r=t;do n+=bh(r),r=r.return;while(r);var o=n}catch(i){o=`
31-Error generating stack: `+i.message+`
32-`+i.stack}return{value:e,source:t,stack:o}}function ta(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ay=typeof WeakMap=="function"?WeakMap:Map;function cg(e,t,n){n=Ot(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Bi||(Bi=!0,fa=r),ta(e,t)},n}function dg(e,t,n){n=Ot(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ta(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ta(e,t),typeof r!="function"&&(Qt===null?Qt=new Set([this]):Qt.add(this));var u=t.stack;this.componentDidCatch(t.value,{componentStack:u!==null?u:""})}),n}function Jf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ay;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_y.bind(null,e,t,n),t.then(e,e))}function Xf(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Zf(e,t,n,r,o){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ot(-1,1),t.tag=2,Yt(n,t))),n.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var pg,na,gg,vg;pg=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};na=function(){};gg=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,mn(vt.current);var i=null;switch(n){case"input":o=$l(e,o),r=$l(e,r),i=[];break;case"select":o=ue({},o,{value:void 0}),r=ue({},r,{value:void 0}),i=[];break;case"textarea":o=Al(e,o),r=Al(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ti)}Fl(n,r);var u;n=null;for(s in o)if(!r.hasOwnProperty(s)&&o.hasOwnProperty(s)&&o[s]!=null)if(s==="style"){var l=o[s];for(u in l)l.hasOwnProperty(u)&&(n||(n={}),n[u]="")}else s!=="dangerouslySetInnerHTML"&&s!=="children"&&s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(Xr.hasOwnProperty(s)?i||(i=[]):(i=i||[]).push(s,null));for(s in r){var a=r[s];if(l=o!=null?o[s]:void 0,r.hasOwnProperty(s)&&a!==l&&(a!=null||l!=null))if(s==="style")if(l){for(u in l)!l.hasOwnProperty(u)||a&&a.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in a)a.hasOwnProperty(u)&&l[u]!==a[u]&&(n||(n={}),n[u]=a[u])}else n||(i||(i=[]),i.push(s,n)),n=a;else s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(s,a)):s==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(s,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&(Xr.hasOwnProperty(s)?(a!=null&&s==="onScroll"&&te("scroll",e),i||l===a||(i=[])):(i=i||[]).push(s,a))}n&&(i=i||[]).push("style",n);var s=i;(t.updateQueue=s)&&(t.flags|=4)}};vg=function(e,t,n,r){n!==r&&(t.flags|=4)};function Ir(e,t){if(!oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Se(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function sy(e,t,n){var r=t.pendingProps;switch(hs(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Se(t),null;case 1:return Fe(t.type)&&Fi(),Se(t),null;case 3:return r=t.stateNode,ir(),re(Te),re(Re),Ss(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(xr(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,rt!==null&&(pa(rt),rt=null))),na(e,t),Se(t),null;case 5:ws(t);var o=mn(fo.current);if(n=t.type,e!==null&&t.stateNode!=null)gg(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(b(166));return Se(t),null}if(e=mn(vt.current),xr(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ct]=t,r[ao]=i,e=(t.mode&1)!==0,n){case"dialog":te("cancel",r),te("close",r);break;case"iframe":case"object":case"embed":te("load",r);break;case"video":case"audio":for(o=0;o<zr.length;o++)te(zr[o],r);break;case"source":te("error",r);break;case"img":case"image":case"link":te("error",r),te("load",r);break;case"details":te("toggle",r);break;case"input":vf(r,i),te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},te("invalid",r);break;case"textarea":mf(r,i),te("invalid",r)}Fl(n,i),o=null;for(var u in i)if(i.hasOwnProperty(u)){var l=i[u];u==="children"?typeof l=="string"?r.textContent!==l&&(Wo(r.textContent,l,e),o=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(Wo(r.textContent,l,e),o=["children",""+l]):Xr.hasOwnProperty(u)&&l!=null&&u==="onScroll"&&te("scroll",r)}switch(n){case"input":Lo(r),hf(r,i,!0);break;case"textarea":Lo(r),yf(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Ti)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{u=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Xd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),n==="select"&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[ct]=t,e[ao]=r,pg(e,t,!1,!1),t.stateNode=e;e:{switch(u=bl(n,r),n){case"dialog":te("cancel",e),te("close",e),o=r;break;case"iframe":case"object":case"embed":te("load",e),o=r;break;case"video":case"audio":for(o=0;o<zr.length;o++)te(zr[o],e);o=r;break;case"source":te("error",e),o=r;break;case"img":case"image":case"link":te("error",e),te("load",e),o=r;break;case"details":te("toggle",e),o=r;break;case"input":vf(e,r),o=$l(e,r),te("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ue({},r,{value:void 0}),te("invalid",e);break;case"textarea":mf(e,r),o=Al(e,r),te("invalid",e);break;default:o=r}Fl(n,o),l=o;for(i in l)if(l.hasOwnProperty(i)){var a=l[i];i==="style"?tp(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Zd(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Zr(e,a):typeof a=="number"&&Zr(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Xr.hasOwnProperty(i)?a!=null&&i==="onScroll"&&te("scroll",e):a!=null&&Ja(e,i,a,u))}switch(n){case"input":Lo(e),hf(e,r,!1);break;case"textarea":Lo(e),yf(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Zt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Yn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Yn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Ti)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Se(t),null;case 6:if(e&&t.stateNode!=null)vg(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(b(166));if(n=mn(fo.current),mn(vt.current),xr(t)){if(r=t.stateNode,n=t.memoizedProps,r[ct]=t,(i=r.nodeValue!==n)&&(e=He,e!==null))switch(u=(e.mode&1)!==0,e.tag){case 3:Wo(r.nodeValue,n,u);break;case 5:e.memoizedProps[void 0]!==!0&&Wo(r.nodeValue,n,u)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ct]=t,t.stateNode=r}return Se(t),null;case 13:if(re(ie),r=t.memoizedState,oe&&Me!==null&&(t.mode&1)!==0&&(t.flags&128)===0){for(r=Me;r;)r=Et(r.nextSibling);return rr(),t.flags|=98560,t}if(r!==null&&r.dehydrated!==null){if(r=xr(t),e===null){if(!r)throw Error(b(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(b(317));r[ct]=t}else rr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;return Se(t),null}return rt!==null&&(pa(rt),rt=null),(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,n=!1,e===null?xr(t):n=e.memoizedState!==null,r&&!n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(ie.current&1)!==0?pe===0&&(pe=3):Ms())),t.updateQueue!==null&&(t.flags|=4),Se(t),null);case 4:return ir(),na(e,t),e===null&&uo(t.stateNode.containerInfo),Se(t),null;case 10:return ps(t.type._context),Se(t),null;case 17:return Fe(t.type)&&Fi(),Se(t),null;case 19:if(re(ie),i=t.memoizedState,i===null)return Se(t),null;if(r=(t.flags&128)!==0,u=i.rendering,u===null)if(r)Ir(i,!1);else{if(pe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=ji(e),u!==null){for(t.flags|=128,Ir(i,!1),r=u.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,u=i.alternate,u===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,e=u.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ee(ie,ie.current&1|2),t.child}e=e.sibling}i.tail!==null&&se()>ar&&(t.flags|=128,r=!0,Ir(i,!1),t.lanes=4194304)}else{if(!r)if(e=ji(u),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Ir(i,!0),i.tail===null&&i.tailMode==="hidden"&&!u.alternate&&!oe)return Se(t),null}else 2*se()-i.renderingStartTime>ar&&n!==1073741824&&(t.flags|=128,r=!0,Ir(i,!1),t.lanes=4194304);i.isBackwards?(u.sibling=t.child,t.child=u):(n=i.last,n!==null?n.sibling=u:t.child=u,i.last=u)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=se(),t.sibling=null,n=ie.current,ee(ie,r?n&1|2:n&1),t):(Se(t),null);case 22:case 23:return ks(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(De&1073741824)!==0&&(Se(t),t.subtreeFlags&6&&(t.flags|=8192)):Se(t),null;case 24:return null;case 25:return null}throw Error(b(156,t.tag))}var fy=Tt.ReactCurrentOwner,Ne=!1;function Pe(e,t,n,r){t.child=e===null?Wp(t,null,n,r):or(t,e.child,n,r)}function ec(e,t,n,r,o){n=n.render;var i=t.ref;return Zn(t,o),r=_s(e,t,n,r,i,o),n=Rs(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Mt(e,t,o)):(oe&&n&&vs(t),t.flags|=1,Pe(e,t,r,o),t.child)}function tc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!As(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,hg(e,t,i,r,o)):(e=Si(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,(e.lanes&o)===0){var u=i.memoizedProps;if(n=n.compare,n=n!==null?n:io,n(u,r)&&e.ref===t.ref)return Mt(e,t,o)}return t.flags|=1,e=tn(i,r),e.ref=t.ref,e.return=t,t.child=e}function hg(e,t,n,r,o){if(e!==null&&io(e.memoizedProps,r)&&e.ref===t.ref)if(Ne=!1,(e.lanes&o)!==0)(e.flags&131072)!==0&&(Ne=!0);else return t.lanes=e.lanes,Mt(e,t,o);return ra(e,t,n,r,o)}function mg(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null},ee(Kn,De),De|=n;else if((n&1073741824)!==0)t.memoizedState={baseLanes:0,cachePool:null},r=i!==null?i.baseLanes:n,ee(Kn,De),De|=r;else return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,ee(Kn,De),De|=e,null;else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ee(Kn,De),De|=r;return Pe(e,t,o,n),t.child}function yg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function ra(e,t,n,r,o){var i=Fe(n)?En:Re.current;return i=nr(t,i),Zn(t,o),n=_s(e,t,n,r,i,o),r=Rs(),e!==null&&!Ne?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Mt(e,t,o)):(oe&&r&&vs(t),t.flags|=1,Pe(e,t,n,o),t.child)}function nc(e,t,n,r,o){if(Fe(n)){var i=!0;bi(t)}else i=!1;if(Zn(t,o),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),jp(t,n,r),Xl(t,n,r,o),r=!0;else if(e===null){var u=t.stateNode,l=t.memoizedProps;u.props=l;var a=u.context,s=n.contextType;typeof s=="object"&&s!==null?s=et(s):(s=Fe(n)?En:Re.current,s=nr(t,s));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof u.getSnapshotBeforeUpdate=="function";c||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(l!==r||a!==s)&&qf(t,u,r,s),Ht=!1;var d=t.memoizedState;u.state=d,Di(t,r,u,o),a=t.memoizedState,l!==r||d!==a||Te.current||Ht?(typeof f=="function"&&(Jl(t,n,f,r),a=t.memoizedState),(l=Ht||Bf(t,n,l,r,d,a,s))?(c||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),u.props=r,u.state=a,u.context=s,r=l):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,Np(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:nt(t.type,l),u.props=s,c=t.pendingProps,d=u.context,a=n.contextType,typeof a=="object"&&a!==null?a=et(a):(a=Fe(n)?En:Re.current,a=nr(t,a));var h=n.getDerivedStateFromProps;(f=typeof h=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(l!==c||d!==a)&&qf(t,u,r,a),Ht=!1,d=t.memoizedState,u.state=d,Di(t,r,u,o);var m=t.memoizedState;l!==c||d!==m||Te.current||Ht?(typeof h=="function"&&(Jl(t,n,h,r),m=t.memoizedState),(s=Ht||Bf(t,n,s,r,d,m,a)||!1)?(f||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,m,a),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,m,a)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),u.props=r,u.state=m,u.context=a,r=s):(typeof u.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return oa(e,t,n,r,i,o)}function oa(e,t,n,r,o,i){yg(e,t);var u=(t.flags&128)!==0;if(!r&&!u)return o&&Uf(t,n,!1),Mt(e,t,i);r=t.stateNode,fy.current=t;var l=u&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&u?(t.child=or(t,e.child,null,i),t.child=or(t,null,l,i)):Pe(e,t,l,i),t.memoizedState=r.state,o&&Uf(t,n,!0),t.child}function wg(e){var t=e.stateNode;t.pendingContext?Vf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vf(e,t.context,!1),ys(e,t.containerInfo)}function rc(e,t,n,r,o){return rr(),ms(o),t.flags|=256,Pe(e,t,n,r),t.child}var Yo={dehydrated:null,treeContext:null,retryLane:0};function Qo(e){return{baseLanes:e,cachePool:null}}function Sg(e,t,n){var r=t.pendingProps,o=ie.current,i=!1,u=(t.flags&128)!==0,l;if((l=u)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ee(ie,o&1),e===null)return ea(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(o=r.children,e=r.fallback,i?(r=t.mode,i=t.child,o={mode:"hidden",children:o},(r&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=o):i=Yi(o,r,0,null),e=Rn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Qo(n),t.memoizedState=Yo,e):ia(t,o));if(o=e.memoizedState,o!==null){if(l=o.dehydrated,l!==null){if(u)return t.flags&256?(t.flags&=-257,Jo(e,t,n,Error(b(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Yi({mode:"visible",children:r.children},o,0,null),i=Rn(i,o,n,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,(t.mode&1)!==0&&or(t,e.child,null,n),t.child.memoizedState=Qo(n),t.memoizedState=Yo,i);if((t.mode&1)===0)t=Jo(e,t,n,null);else if(l.data==="$!")t=Jo(e,t,n,Error(b(419)));else if(r=(n&e.childLanes)!==0,Ne||r){if(r=ce,r!==null){switch(n&-n){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}r=(i&(r.suspendedLanes|n))!==0?0:i,r!==0&&r!==o.retryLane&&(o.retryLane=r,Xe(e,r,-1))}Ms(),t=Jo(e,t,n,Error(b(421)))}else l.data==="$?"?(t.flags|=128,t.child=e.child,t=Ry.bind(null,e),l._reactRetry=t,t=null):(n=o.treeContext,Me=Et(l.nextSibling),He=t,oe=!0,rt=null,n!==null&&(qe[Ke++]=Pt,qe[Ke++]=xt,qe[Ke++]=Pn,Pt=n.id,xt=n.overflow,Pn=t),t=ia(t,t.pendingProps.children),t.flags|=4096);return t}return i?(r=ic(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?Qo(n):{baseLanes:o.baseLanes|n,cachePool:null},i.childLanes=e.childLanes&~n,t.memoizedState=Yo,r):(n=oc(e,t,r.children,n),t.memoizedState=null,n)}return i?(r=ic(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?Qo(n):{baseLanes:o.baseLanes|n,cachePool:null},i.childLanes=e.childLanes&~n,t.memoizedState=Yo,r):(n=oc(e,t,r.children,n),t.memoizedState=null,n)}function ia(e,t){return t=Yi({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function oc(e,t,n,r){var o=e.child;return e=o.sibling,n=tn(o,{mode:"visible",children:n}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function ic(e,t,n,r,o){var i=t.mode;e=e.child;var u=e.sibling,l={mode:"hidden",children:n};return(i&1)===0&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=tn(e,l),n.subtreeFlags=e.subtreeFlags&14680064),u!==null?r=tn(u,r):(r=Rn(r,i,o,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Jo(e,t,n,r){return r!==null&&ms(r),or(t,e.child,null,n),e=ia(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function uc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ql(e.return,t,n)}function Xu(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Cg(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Pe(e,t,r.children,n),r=ie.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&uc(e,n,t);else if(e.tag===19)uc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ee(ie,r),(t.mode&1)===0)t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&ji(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Xu(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&ji(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Xu(t,!0,n,null,i);break;case"together":Xu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Mt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),lr|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(b(153));if(t.child!==null){for(e=t.child,n=tn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=tn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cy(e,t,n){switch(t.tag){case 3:wg(t),rr();break;case 5:Bp(t);break;case 1:Fe(t.type)&&bi(t);break;case 4:ys(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ee(zi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ee(ie,ie.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?Sg(e,t,n):(ee(ie,ie.current&1),e=Mt(e,t,n),e!==null?e.sibling:null);ee(ie,ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return Cg(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ee(ie,ie.current),r)break;return null;case 22:case 23:return t.lanes=0,mg(e,t,n)}return Mt(e,t,n)}function dy(e,t){switch(hs(t),t.tag){case 1:return Fe(t.type)&&Fi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ir(),re(Te),re(Re),Ss(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return ws(t),null;case 13:if(re(ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(b(340));rr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return re(ie),null;case 4:return ir(),null;case 10:return ps(t.type._context),null;case 22:case 23:return ks(),null;case 24:return null;default:return null}}var Xo=!1,yn=!1,py=typeof WeakSet=="function"?WeakSet:Set,H=null;function Gi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ae(e,t,r)}else n.current=null}function ua(e,t,n){try{n()}catch(r){Ae(e,t,r)}}var lc=!1;function gy(e,t){if(e=Ip(),fs(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var u=0,l=-1,a=-1,s=0,f=0,c=e,d=null;t:for(;;){for(var h;c!==n||o!==0&&c.nodeType!==3||(l=u+o),c!==i||r!==0&&c.nodeType!==3||(a=u+r),c.nodeType===3&&(u+=c.nodeValue.length),(h=c.firstChild)!==null;)d=c,c=h;for(;;){if(c===e)break t;if(d===n&&++s===o&&(l=u),d===i&&++f===r&&(a=u),(h=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=h}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Wl={focusedElem:e,selectionRange:n},H=t;H!==null;)if(t=H,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,H=e;else for(;H!==null;){t=H;try{var m=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,S=m.memoizedState,p=t.stateNode,g=p.getSnapshotBeforeUpdate(t.elementType===t.type?v:nt(t.type,v),S);p.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=t.stateNode.containerInfo;if(y.nodeType===1)y.textContent="";else if(y.nodeType===9){var w=y.body;w!=null&&(w.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(C){Ae(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,H=e;break}H=t.return}return m=lc,lc=!1,m}function vo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ua(t,n,i)}o=o.next}while(o!==r)}}function cu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function la(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ac(e,t,n){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(ru,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var r=e=e.next;do{var o=r,i=o.destroy;o=o.tag,i!==void 0&&((o&2)!==0||(o&4)!==0)&&ua(t,n,i),r=r.next}while(r!==e)}break;case 1:if(Gi(t,n),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(u){Ae(t,n,u)}break;case 5:Gi(t,n);break;case 4:Eg(e,t,n)}}function _g(e){var t=e.alternate;t!==null&&(e.alternate=null,_g(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ct],delete t[ao],delete t[Kl],delete t[Jm],delete t[Xm])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rg(e){return e.tag===5||e.tag===3||e.tag===4}function sc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function fc(e){e:{for(var t=e.return;t!==null;){if(Rg(t))break e;t=t.return}throw Error(b(160))}var n=t;switch(n.tag){case 5:t=n.stateNode,n.flags&32&&(Zr(t,""),n.flags&=-33),n=sc(e),sa(e,n,t);break;case 3:case 4:t=n.stateNode.containerInfo,n=sc(e),aa(e,n,t);break;default:throw Error(b(161))}}function aa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ti));else if(r!==4&&(e=e.child,e!==null))for(aa(e,t,n),e=e.sibling;e!==null;)aa(e,t,n),e=e.sibling}function sa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sa(e,t,n),e=e.sibling;e!==null;)sa(e,t,n),e=e.sibling}function Eg(e,t,n){for(var r=t,o=!1,i,u;;){if(!o){o=r.return;e:for(;;){if(o===null)throw Error(b(160));switch(i=o.stateNode,o.tag){case 5:u=!1;break e;case 3:i=i.containerInfo,u=!0;break e;case 4:i=i.containerInfo,u=!0;break e}o=o.return}o=!0}if(r.tag===5||r.tag===6){e:for(var l=e,a=r,s=n,f=a;;)if(ac(l,f,s),f.child!==null&&f.tag!==4)f.child.return=f,f=f.child;else{if(f===a)break e;for(;f.sibling===null;){if(f.return===null||f.return===a)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}u?(l=i,a=r.stateNode,l.nodeType===8?l.parentNode.removeChild(a):l.removeChild(a)):i.removeChild(r.stateNode)}else if(r.tag===18)u?(l=i,a=r.stateNode,l.nodeType===8?qu(l.parentNode,a):l.nodeType===1&&qu(l,a),ro(l)):qu(i,r.stateNode);else if(r.tag===4){if(r.child!==null){i=r.stateNode.containerInfo,u=!0,r.child.return=r,r=r.child;continue}}else if(ac(e,r,n),r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return,r.tag===4&&(o=!1)}r.sibling.return=r.return,r=r.sibling}}function Zu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:vo(3,t,t.return),cu(3,t),vo(5,t,t.return);return;case 1:return;case 5:var n=t.stateNode;if(n!=null){var r=t.memoizedProps,o=e!==null?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,i!==null){for(e==="input"&&r.type==="radio"&&r.name!=null&&Qd(n,r),bl(e,o),t=bl(e,r),o=0;o<i.length;o+=2){var u=i[o],l=i[o+1];u==="style"?tp(n,l):u==="dangerouslySetInnerHTML"?Zd(n,l):u==="children"?Zr(n,l):Ja(n,u,l,t)}switch(e){case"input":kl(n,r);break;case"textarea":Jd(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,i=r.value,i!=null?Yn(n,!!r.multiple,i,!1):e!==!!r.multiple&&(r.defaultValue!=null?Yn(n,!!r.multiple,r.defaultValue,!0):Yn(n,!!r.multiple,r.multiple?[]:"",!1))}n[ao]=r}}return;case 6:if(t.stateNode===null)throw Error(b(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:e!==null&&e.memoizedState.isDehydrated&&ro(t.stateNode.containerInfo);return;case 12:return;case 13:cc(t);return;case 19:cc(t);return;case 17:return}throw Error(b(163))}function cc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new py),t.forEach(function(r){var o=Ey.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function vy(e,t){for(H=t;H!==null;){t=H;var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{Eg(e,o,t);var i=o.alternate;i!==null&&(i.return=null),o.return=null}catch(P){Ae(o,t,P)}}if(n=t.child,(t.subtreeFlags&12854)!==0&&n!==null)n.return=t,H=n;else for(;H!==null;){t=H;try{var u=t.flags;if(u&32&&Zr(t.stateNode,""),u&512){var l=t.alternate;if(l!==null){var a=l.ref;a!==null&&(typeof a=="function"?a(null):a.current=null)}}if(u&8192)switch(t.tag){case 13:if(t.memoizedState!==null){var s=t.alternate;(s===null||s.memoizedState===null)&&(Is=se())}break;case 22:var f=t.memoizedState!==null,c=t.alternate,d=c!==null&&c.memoizedState!==null;n=t;e:{r=n,o=f;for(var h=null,m=r;;){if(m.tag===5){if(h===null){h=m;var v=m.stateNode;if(o){var S=v.style;typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none"}else{var p=m.stateNode,g=m.memoizedProps.style,y=g!=null&&g.hasOwnProperty("display")?g.display:null;p.style.display=ep("display",y)}}}else if(m.tag===6)h===null&&(m.stateNode.nodeValue=o?"":m.memoizedProps);else if((m.tag!==22&&m.tag!==23||m.memoizedState===null||m===r)&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===r)break;for(;m.sibling===null;){if(m.return===null||m.return===r)break e;h===m&&(h=null),m=m.return}h===m&&(h=null),m.sibling.return=m.return,m=m.sibling}}if(f&&!d&&(n.mode&1)!==0){H=n;for(var w=n.child;w!==null;){for(n=H=w;H!==null;){r=H;var C=r.child;switch(r.tag){case 0:case 11:case 14:case 15:vo(4,r,r.return);break;case 1:Gi(r,r.return);var R=r.stateNode;if(typeof R.componentWillUnmount=="function"){var x=r.return;try{R.props=r.memoizedProps,R.state=r.memoizedState,R.componentWillUnmount()}catch(P){Ae(r,x,P)}}break;case 5:Gi(r,r.return);break;case 22:if(r.memoizedState!==null){pc(n);continue}}C!==null?(C.return=r,H=C):pc(n)}w=w.sibling}}}switch(u&4102){case 2:fc(t),t.flags&=-3;break;case 6:fc(t),t.flags&=-3,Zu(t.alternate,t);break;case 4096:t.flags&=-4097;break;case 4100:t.flags&=-4097,Zu(t.alternate,t);break;case 4:Zu(t.alternate,t)}}catch(P){Ae(t,t.return,P)}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}}function hy(e,t,n){H=e,Pg(e)}function Pg(e,t,n){for(var r=(e.mode&1)!==0;H!==null;){var o=H,i=o.child;if(o.tag===22&&r){var u=o.memoizedState!==null||Xo;if(!u){var l=o.alternate,a=l!==null&&l.memoizedState!==null||yn;l=Xo;var s=yn;if(Xo=u,(yn=a)&&!s)for(H=o;H!==null;)u=H,a=u.child,u.tag===22&&u.memoizedState!==null?gc(o):a!==null?(a.return=u,H=a):gc(o);for(;i!==null;)H=i,Pg(i),i=i.sibling;H=o,Xo=l,yn=s}dc(e)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,H=i):dc(e)}}function dc(e){for(;H!==null;){var t=H;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:yn||cu(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!yn)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:nt(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Wf(t,i,r);break;case 3:var u=t.updateQueue;if(u!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Wf(t,u,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var s=t.alternate;if(s!==null){var f=s.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&ro(c)}}}break;case 19:case 17:case 21:case 22:case 23:break;default:throw Error(b(163))}yn||t.flags&512&&la(t)}catch(d){Ae(t,t.return,d)}}if(t===e){H=null;break}if(n=t.sibling,n!==null){n.return=t.return,H=n;break}H=t.return}}function pc(e){for(;H!==null;){var t=H;if(t===e){H=null;break}var n=t.sibling;if(n!==null){n.return=t.return,H=n;break}H=t.return}}function gc(e){for(;H!==null;){var t=H;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{cu(4,t)}catch(a){Ae(t,n,a)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(a){Ae(t,o,a)}}var i=t.return;try{la(t)}catch(a){Ae(t,i,a)}break;case 5:var u=t.return;try{la(t)}catch(a){Ae(t,u,a)}}}catch(a){Ae(t,t.return,a)}if(t===e){H=null;break}var l=t.sibling;if(l!==null){l.return=t.return,H=l;break}H=t.return}}var my=Math.ceil,Wi=Tt.ReactCurrentDispatcher,xs=Tt.ReactCurrentOwner,Je=Tt.ReactCurrentBatchConfig,Y=0,ce=null,fe=null,me=0,De=0,Kn=ln(0),pe=0,ho=null,lr=0,du=0,Os=0,Gr=null,ke=null,Is=0,ar=1/0,Bi=!1,fa=null,Qt=null,Zo=!1,Gt=null,qi=0,Wr=0,ca=null,yi=-1,wi=0;function Oe(){return(Y&6)!==0?se():yi!==-1?yi:yi=se()}function Jt(e){return(e.mode&1)===0?1:(Y&2)!==0&&me!==0?me&-me:ey.transition!==null?(wi===0&&(e=No,No<<=1,(No&4194240)===0&&(No=64),wi=e),wi):(e=X,e!==0||(e=window.event,e=e===void 0?16:wp(e.type)),e)}function Xe(e,t,n){if(50<Wr)throw Wr=0,ca=null,Error(b(185));var r=pu(e,t);return r===null?null:(Io(r,t,n),((Y&2)===0||r!==ce)&&(r===ce&&((Y&2)===0&&(du|=t),pe===4&&Vt(r,me)),be(r,n),t===1&&Y===0&&(e.mode&1)===0&&(ar=se()+500,au&&an())),r)}function pu(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}function be(e,t){var n=e.callbackNode;em(e,t);var r=ki(e,e===ce?me:0);if(r===0)n!==null&&Cf(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Cf(n),t===1)e.tag===0?Zm(vc.bind(null,e)):Dp(vc.bind(null,e)),Ym(function(){Y===0&&an()}),n=null;else{switch(pp(r)){case 1:n=ns;break;case 4:n=cp;break;case 16:n=$i;break;case 536870912:n=dp;break;default:n=$i}n=Tg(n,xg.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function xg(e,t){if(yi=-1,wi=0,(Y&6)!==0)throw Error(b(327));var n=e.callbackNode;if(er()&&e.callbackNode!==n)return null;var r=ki(e,e===ce?me:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Ki(e,r);else{t=r;var o=Y;Y|=2;var i=Ig();(ce!==e||me!==t)&&(ar=se()+500,_n(e,t));do try{Sy();break}catch(l){Og(e,l)}while(1);ds(),Wi.current=i,Y=o,fe!==null?t=0:(ce=null,me=0,t=pe)}if(t!==0){if(t===2&&(o=Hl(e),o!==0&&(r=o,t=da(e,o))),t===1)throw n=ho,_n(e,0),Vt(e,r),be(e,se()),n;if(t===6)Vt(e,r);else{if(o=e.current.alternate,(r&30)===0&&!yy(o)&&(t=Ki(e,r),t===2&&(i=Hl(e),i!==0&&(r=i,t=da(e,i))),t===1))throw n=ho,_n(e,0),Vt(e,r),be(e,se()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(b(345));case 2:cn(e,ke);break;case 3:if(Vt(e,r),(r&130023424)===r&&(t=Is+500-se(),10<t)){if(ki(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){Oe(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ql(cn.bind(null,e,ke),t);break}cn(e,ke);break;case 4:if(Vt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var u=31-it(r);i=1<<u,u=t[u],u>o&&(o=u),r&=~i}if(r=o,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*my(r/1960))-r,10<r){e.timeoutHandle=ql(cn.bind(null,e,ke),r);break}cn(e,ke);break;case 5:cn(e,ke);break;default:throw Error(b(329))}}}return be(e,se()),e.callbackNode===n?xg.bind(null,e):null}function da(e,t){var n=Gr;return e.current.memoizedState.isDehydrated&&(_n(e,t).flags|=256),e=Ki(e,t),e!==2&&(t=ke,ke=n,t!==null&&pa(t)),e}function pa(e){ke===null?ke=e:ke.push.apply(ke,e)}function yy(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!mt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Vt(e,t){for(t&=~Os,t&=~du,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function vc(e){if((Y&6)!==0)throw Error(b(327));er();var t=ki(e,0);if((t&1)===0)return be(e,se()),null;var n=Ki(e,t);if(e.tag!==0&&n===2){var r=Hl(e);r!==0&&(t=r,n=da(e,r))}if(n===1)throw n=ho,_n(e,0),Vt(e,t),be(e,se()),n;if(n===6)throw Error(b(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,cn(e,ke),be(e,se()),null}function $s(e,t){var n=Y;Y|=1;try{return e(t)}finally{Y=n,Y===0&&(ar=se()+500,au&&an())}}function xn(e){Gt!==null&&Gt.tag===0&&(Y&6)===0&&er();var t=Y;Y|=1;var n=Je.transition,r=X;try{if(Je.transition=null,X=1,e)return e()}finally{X=r,Je.transition=n,Y=t,(Y&6)===0&&an()}}function ks(){De=Kn.current,re(Kn)}function _n(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Km(n)),fe!==null)for(n=fe.return;n!==null;){var r=n;switch(hs(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Fi();break;case 3:ir(),re(Te),re(Re),Ss();break;case 5:ws(r);break;case 4:ir();break;case 13:re(ie);break;case 19:re(ie);break;case 10:ps(r.type._context);break;case 22:case 23:ks()}n=n.return}if(ce=e,fe=e=tn(e.current,null),me=De=t,pe=0,ho=null,Os=du=lr=0,ke=Gr=null,dt!==null){for(t=0;t<dt.length;t++)if(n=dt[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var u=i.next;i.next=o,r.next=u}n.pending=r}dt=null}return e}function Og(e,t){do{var n=fe;try{if(ds(),hi.current=Ui,Vi){for(var r=le.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Vi=!1}if(ur=0,ge=Ce=le=null,Ur=!1,co=0,xs.current=null,n===null||n.return===null){pe=1,ho=t,fe=null;break}e:{var i=e,u=n.return,l=n,a=t;if(t=me,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var s=a,f=l,c=f.tag;if((f.mode&1)===0&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=Xf(u);if(h!==null){h.flags&=-257,Zf(h,u,l,i,t),h.mode&1&&Jf(i,s,t),t=h,a=s;var m=t.updateQueue;if(m===null){var v=new Set;v.add(a),t.updateQueue=v}else m.add(a);break e}else{if((t&1)===0){Jf(i,s,t),Ms();break e}a=Error(b(426))}}else if(oe&&l.mode&1){var S=Xf(u);if(S!==null){(S.flags&65536)===0&&(S.flags|=256),Zf(S,u,l,i,t),ms(a);break e}}i=a,pe!==4&&(pe=2),Gr===null?Gr=[i]:Gr.push(i),a=Ps(a,l),l=u;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t;var p=cg(l,a,t);Gf(l,p);break e;case 1:i=a;var g=l.type,y=l.stateNode;if((l.flags&128)===0&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Qt===null||!Qt.has(y)))){l.flags|=65536,t&=-t,l.lanes|=t;var w=dg(l,i,t);Gf(l,w);break e}}l=l.return}while(l!==null)}kg(n)}catch(C){t=C,fe===n&&n!==null&&(fe=n=n.return);continue}break}while(1)}function Ig(){var e=Wi.current;return Wi.current=Ui,e===null?Ui:e}function Ms(){(pe===0||pe===3||pe===2)&&(pe=4),ce===null||(lr&268435455)===0&&(du&268435455)===0||Vt(ce,me)}function Ki(e,t){var n=Y;Y|=2;var r=Ig();ce===e&&me===t||_n(e,t);do try{wy();break}catch(o){Og(e,o)}while(1);if(ds(),Y=n,Wi.current=r,fe!==null)throw Error(b(261));return ce=null,me=0,pe}function wy(){for(;fe!==null;)$g(fe)}function Sy(){for(;fe!==null&&!Wh();)$g(fe)}function $g(e){var t=Ag(e.alternate,e,De);e.memoizedProps=e.pendingProps,t===null?kg(e):fe=t,xs.current=null}function kg(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=sy(n,t,De),n!==null){fe=n;return}}else{if(n=dy(n,t),n!==null){n.flags&=32767,fe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{pe=6,fe=null;return}}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);pe===0&&(pe=5)}function cn(e,t){var n=X,r=Je.transition;try{Je.transition=null,X=1,Cy(e,t,n)}finally{Je.transition=r,X=n}return null}function Cy(e,t,n){do er();while(Gt!==null);if((Y&6)!==0)throw Error(b(327));var r=e.finishedWork,o=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(b(177));e.callbackNode=null,e.callbackPriority=0;var i=r.lanes|r.childLanes;if(tm(e,i),e===ce&&(fe=ce=null,me=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Zo||(Zo=!0,Tg($i,function(){return er(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Je.transition,Je.transition=null;var u=X;X=1;var l=Y;Y|=4,xs.current=null,gy(e,r),vy(e,r),jm(Wl),Wl=null,e.current=r,hy(r),Bh(),Y=l,X=u,Je.transition=i}else e.current=r;if(Zo&&(Zo=!1,Gt=e,qi=o),i=e.pendingLanes,i===0&&(Qt=null),Yh(r.stateNode),be(e,se()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)n(t[r]);if(Bi)throw Bi=!1,e=fa,fa=null,e;return(qi&1)!==0&&e.tag!==0&&er(),i=e.pendingLanes,(i&1)!==0?e===ca?Wr++:(Wr=0,ca=e):Wr=0,an(),null}function er(){if(Gt!==null){var e=pp(qi),t=Je.transition,n=X;try{if(Je.transition=null,X=16>e?16:e,Gt===null)var r=!1;else{if(e=Gt,Gt=null,qi=0,(Y&6)!==0)throw Error(b(331));var o=Y;for(Y|=4,H=e.current;H!==null;){var i=H,u=i.child;if((H.flags&16)!==0){var l=i.deletions;if(l!==null){for(var a=0;a<l.length;a++){var s=l[a];for(H=s;H!==null;){var f=H;switch(f.tag){case 0:case 11:case 15:vo(8,f,i)}var c=f.child;if(c!==null)c.return=f,H=c;else for(;H!==null;){f=H;var d=f.sibling,h=f.return;if(_g(f),f===s){H=null;break}if(d!==null){d.return=h,H=d;break}H=h}}}var m=i.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var S=v.sibling;v.sibling=null,v=S}while(v!==null)}}H=i}}if((i.subtreeFlags&2064)!==0&&u!==null)u.return=i,H=u;else e:for(;H!==null;){if(i=H,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:vo(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,H=p;break e}H=i.return}}var g=e.current;for(H=g;H!==null;){u=H;var y=u.child;if((u.subtreeFlags&2064)!==0&&y!==null)y.return=u,H=y;else e:for(u=g;H!==null;){if(l=H,(l.flags&2048)!==0)try{switch(l.tag){case 0:case 11:case 15:cu(9,l)}}catch(C){Ae(l,l.return,C)}if(l===u){H=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,H=w;break e}H=l.return}}if(Y=o,an(),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(ru,e)}catch{}r=!0}return r}finally{X=n,Je.transition=t}}return!1}function hc(e,t,n){t=Ps(n,t),t=cg(e,t,1),Yt(e,t),t=Oe(),e=pu(e,1),e!==null&&(Io(e,1,t),be(e,t))}function Ae(e,t,n){if(e.tag===3)hc(e,e,n);else for(;t!==null;){if(t.tag===3){hc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Qt===null||!Qt.has(r))){e=Ps(n,e),e=dg(t,e,1),Yt(t,e),e=Oe(),t=pu(t,1),t!==null&&(Io(t,1,e),be(t,e));break}}t=t.return}}function _y(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Oe(),e.pingedLanes|=e.suspendedLanes&n,ce===e&&(me&n)===n&&(pe===4||pe===3&&(me&130023424)===me&&500>se()-Is?_n(e,0):Os|=n),be(e,t)}function Mg(e,t){t===0&&((e.mode&1)===0?t=1:(t=Ho,Ho<<=1,(Ho&130023424)===0&&(Ho=4194304)));var n=Oe();e=pu(e,t),e!==null&&(Io(e,t,n),be(e,n))}function Ry(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Mg(e,n)}function Ey(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(b(314))}r!==null&&r.delete(t),Mg(e,n)}var Ag;Ag=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Te.current)Ne=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return Ne=!1,cy(e,t,n);Ne=(e.flags&131072)!==0}else Ne=!1,oe&&(t.flags&1048576)!==0&&Vp(t,Hi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var o=nr(t,Re.current);Zn(t,n),o=_s(null,t,r,e,o,n);var i=Rs();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fe(r)?(i=!0,bi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,gs(t),o.updater=su,t.stateNode=o,o._reactInternals=t,Xl(t,r,e,n),t=oa(null,t,r,!0,i,n)):(t.tag=0,oe&&i&&vs(t),Pe(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=xy(r),e=nt(r,e),o){case 0:t=ra(null,t,r,e,n);break e;case 1:t=nc(null,t,r,e,n);break e;case 11:t=ec(null,t,r,e,n);break e;case 14:t=tc(null,t,r,nt(r.type,e),n);break e}throw Error(b(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nt(r,o),ra(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nt(r,o),nc(e,t,r,o,n);case 3:e:{if(wg(t),e===null)throw Error(b(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Np(e,t),Di(t,r,null,n);var u=t.memoizedState;if(r=u.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:u.cache,transitions:u.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Error(b(423)),t=rc(e,t,r,n,o);break e}else if(r!==o){o=Error(b(424)),t=rc(e,t,r,n,o);break e}else for(Me=Et(t.stateNode.containerInfo.firstChild),He=t,oe=!0,rt=null,n=Wp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(rr(),r===o){t=Mt(e,t,n);break e}Pe(e,t,r,n)}t=t.child}return t;case 5:return Bp(t),e===null&&ea(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,u=o.children,Bl(r,o)?u=null:i!==null&&Bl(r,i)&&(t.flags|=32),yg(e,t),Pe(e,t,u,n),t.child;case 6:return e===null&&ea(t),null;case 13:return Sg(e,t,n);case 4:return ys(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=or(t,null,r,n):Pe(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nt(r,o),ec(e,t,r,o,n);case 7:return Pe(e,t,t.pendingProps,n),t.child;case 8:return Pe(e,t,t.pendingProps.children,n),t.child;case 12:return Pe(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,u=o.value,ee(zi,r._currentValue),r._currentValue=u,i!==null)if(mt(i.value,u)){if(i.children===o.children&&!Te.current){t=Mt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){u=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Ot(-1,n&-n),a.tag=2;var s=i.updateQueue;if(s!==null){s=s.shared;var f=s.pending;f===null?a.next=a:(a.next=f.next,f.next=a),s.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ql(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)u=i.type===t.type?null:i.child;else if(i.tag===18){if(u=i.return,u===null)throw Error(b(341));u.lanes|=n,l=u.alternate,l!==null&&(l.lanes|=n),Ql(u,n,t),u=i.sibling}else u=i.child;if(u!==null)u.return=i;else for(u=i;u!==null;){if(u===t){u=null;break}if(i=u.sibling,i!==null){i.return=u.return,u=i;break}u=u.return}i=u}Pe(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Zn(t,n),o=et(o),r=r(o),t.flags|=1,Pe(e,t,r,n),t.child;case 14:return r=t.type,o=nt(r,t.pendingProps),o=nt(r.type,o),tc(e,t,r,o,n);case 15:return hg(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:nt(r,o),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Fe(r)?(e=!0,bi(t)):e=!1,Zn(t,n),jp(t,r,o),Xl(t,r,o,n),oa(null,t,r,!0,e,n);case 19:return Cg(e,t,n);case 22:return mg(e,t,n)}throw Error(b(156,t.tag))};function Tg(e,t){return fp(e,t)}function Py(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ye(e,t,n,r){return new Py(e,t,n,r)}function As(e){return e=e.prototype,!(!e||!e.isReactComponent)}function xy(e){if(typeof e=="function")return As(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Za)return 11;if(e===es)return 14}return 2}function tn(e,t){var n=e.alternate;return n===null?(n=Ye(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Si(e,t,n,r,o,i){var u=2;if(r=e,typeof e=="function")As(e)&&(u=1);else if(typeof e=="string")u=5;else e:switch(e){case Nn:return Rn(n.children,o,i,t);case Xa:u=8,o|=8;break;case Pl:return e=Ye(12,n,t,o|2),e.elementType=Pl,e.lanes=i,e;case xl:return e=Ye(13,n,t,o),e.elementType=xl,e.lanes=i,e;case Ol:return e=Ye(19,n,t,o),e.elementType=Ol,e.lanes=i,e;case qd:return Yi(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Wd:u=10;break e;case Bd:u=9;break e;case Za:u=11;break e;case es:u=14;break e;case Nt:u=16,r=null;break e}throw Error(b(130,e==null?e:typeof e,""))}return t=Ye(u,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Rn(e,t,n,r){return e=Ye(7,e,r,t),e.lanes=n,e}function Yi(e,t,n,r){return e=Ye(22,e,r,t),e.elementType=qd,e.lanes=n,e.stateNode={},e}function el(e,t,n){return e=Ye(6,e,null,t),e.lanes=n,e}function tl(e,t,n){return t=Ye(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Oy(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zu(0),this.expirationTimes=zu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zu(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ts(e,t,n,r,o,i,u,l,a){return e=new Oy(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ye(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null},gs(i),e}function Iy(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Dn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Fg(e){if(!e)return en;e=e._reactInternals;e:{if(kn(e)!==e||e.tag!==1)throw Error(b(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(b(171))}if(e.tag===1){var n=e.type;if(Fe(n))return Lp(e,n,t)}return t}function bg(e,t,n,r,o,i,u,l,a){return e=Ts(n,r,!0,e,o,i,u,l,a),e.context=Fg(null),n=e.current,r=Oe(),o=Jt(n),i=Ot(r,o),i.callback=t!=null?t:null,Yt(n,i),e.current.lanes=o,Io(e,o,r),be(e,r),e}function gu(e,t,n,r){var o=t.current,i=Oe(),u=Jt(o);return n=Fg(n),t.context===null?t.context=n:t.pendingContext=n,t=Ot(i,u),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),Yt(o,t),e=Xe(o,u,i),e!==null&&vi(e,o,u),u}function Qi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function mc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Fs(e,t){mc(e,t),(e=e.alternate)&&mc(e,t)}function $y(){return null}var zg=typeof reportError=="function"?reportError:function(e){console.error(e)};function bs(e){this._internalRoot=e}vu.prototype.render=bs.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(b(409));gu(e,t,null,null)};vu.prototype.unmount=bs.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xn(function(){gu(null,e,null,null)}),t[kt]=null}};function vu(e){this._internalRoot=e}vu.prototype.unstable_scheduleHydration=function(e){if(e){var t=hp();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jt.length&&t!==0&&t<jt[n].priority;n++);jt.splice(n,0,e),n===0&&yp(e)}};function zs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function hu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function yc(){}function ky(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var s=Qi(u);i.call(s)}}var u=bg(t,r,e,0,null,!1,!1,"",yc);return e._reactRootContainer=u,e[kt]=u.current,uo(e.nodeType===8?e.parentNode:e),xn(),u}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var l=r;r=function(){var s=Qi(a);l.call(s)}}var a=Ts(e,0,!1,null,null,!1,!1,"",yc);return e._reactRootContainer=a,e[kt]=a.current,uo(e.nodeType===8?e.parentNode:e),xn(function(){gu(t,a,n,r)}),a}function mu(e,t,n,r,o){var i=n._reactRootContainer;if(i){var u=i;if(typeof o=="function"){var l=o;o=function(){var a=Qi(u);l.call(a)}}gu(t,u,e,o)}else u=ky(n,t,e,o,r);return Qi(u)}gp=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=br(t.pendingLanes);n!==0&&(rs(t,n|1),be(t,se()),(Y&6)===0&&(ar=se()+500,an()))}break;case 13:var r=Oe();xn(function(){return Xe(e,1,r)}),Fs(e,1)}};os=function(e){if(e.tag===13){var t=Oe();Xe(e,134217728,t),Fs(e,134217728)}};vp=function(e){if(e.tag===13){var t=Oe(),n=Jt(e);Xe(e,n,t),Fs(e,n)}};hp=function(){return X};mp=function(e,t){var n=X;try{return X=e,t()}finally{X=n}};Ll=function(e,t,n){switch(t){case"input":if(kl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=lu(r);if(!o)throw Error(b(90));Yd(r),kl(r,o)}}}break;case"textarea":Jd(e,n);break;case"select":t=n.value,t!=null&&Yn(e,!!n.multiple,t,!1)}};op=$s;ip=xn;var My={usingClientEntryPoint:!1,Events:[ko,Un,lu,np,rp,$s]},$r={findFiberByHostInstance:hn,bundleType:0,version:"18.0.0-fc46dba67-20220329",rendererPackageName:"react-dom"},Ay={bundleType:$r.bundleType,version:$r.version,rendererPackageName:$r.rendererPackageName,rendererConfig:$r.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Tt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ap(e),e===null?null:e.stateNode},findFiberByHostInstance:$r.findFiberByHostInstance||$y,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"){var ei=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ei.isDisabled&&ei.supportsFiber)try{ru=ei.inject(Ay),gt=ei}catch{}}Ge.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=My;Ge.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zs(t))throw Error(b(200));return Iy(e,t,null,n)};Ge.createRoot=function(e,t){if(!zs(e))throw Error(b(299));var n=!1,r="",o=zg;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ts(e,1,!1,null,null,n,!1,r,o),e[kt]=t.current,uo(e.nodeType===8?e.parentNode:e),new bs(t)};Ge.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(b(188)):(e=Object.keys(e).join(","),Error(b(268,e)));return e=ap(t),e=e===null?null:e.stateNode,e};Ge.flushSync=function(e){return xn(e)};Ge.hydrate=function(e,t,n){if(!hu(t))throw Error(b(200));return mu(null,e,t,!0,n)};Ge.hydrateRoot=function(e,t,n){if(!zs(e))throw Error(b(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",u=zg;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),t=bg(t,null,e,1,n!=null?n:null,o,!1,i,u),e[kt]=t.current,uo(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new vu(t)};Ge.render=function(e,t,n){if(!hu(t))throw Error(b(200));return mu(null,e,t,!1,n)};Ge.unmountComponentAtNode=function(e){if(!hu(e))throw Error(b(40));return e._reactRootContainer?(xn(function(){mu(null,null,e,!1,function(){e._reactRootContainer=null,e[kt]=null})}),!0):!1};Ge.unstable_batchedUpdates=$s;Ge.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!hu(n))throw Error(b(200));if(e==null||e._reactInternals===void 0)throw Error(b(38));return mu(e,t,n,!1,r)};Ge.version="18.0.0-fc46dba67-20220329";function Lg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Lg)}catch(e){console.error(e)}}Lg(),Hd.exports=Ge;var Ty,Fy=Hd.exports;Ty=Fy.createRoot;function mo(){return mo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mo.apply(this,arguments)}var wn;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(wn||(wn={}));var wc=function(e){return e},Sc="beforeunload",by="hashchange",zy="popstate";function Ly(e){e===void 0&&(e={});var t=e,n=t.window,r=n===void 0?document.defaultView:n,o=r.history;function i(){var P=nn(r.location.hash.substr(1)),$=P.pathname,M=$===void 0?"/":$,W=P.search,J=W===void 0?"":W,j=P.hash,L=j===void 0?"":j,F=o.state||{};return[F.idx,wc({pathname:M,search:J,hash:L,state:F.usr||null,key:F.key||"default"})]}var u=null;function l(){if(u)h.call(u),u=null;else{var P=wn.Pop,$=i(),M=$[0],W=$[1];if(h.length){if(M!=null){var J=f-M;J&&(u={action:P,location:W,retry:function(){R(J*-1)}},R(J))}}else y(P)}}r.addEventListener(zy,l),r.addEventListener(by,function(){var P=i(),$=P[1];Br($)!==Br(c)&&l()});var a=wn.Pop,s=i(),f=s[0],c=s[1],d=_c(),h=_c();f==null&&(f=0,o.replaceState(mo({},o.state,{idx:f}),""));function m(){var P=document.querySelector("base"),$="";if(P&&P.getAttribute("href")){var M=r.location.href,W=M.indexOf("#");$=W===-1?M:M.slice(0,W)}return $}function v(P){return m()+"#"+(typeof P=="string"?P:Br(P))}function S(P,$){return $===void 0&&($=null),wc(mo({pathname:c.pathname,hash:"",search:""},typeof P=="string"?nn(P):P,{state:$,key:Dy()}))}function p(P,$){return[{usr:P.state,key:P.key,idx:$},v(P)]}function g(P,$,M){return!h.length||(h.call({action:P,location:$,retry:M}),!1)}function y(P){a=P;var $=i();f=$[0],c=$[1],d.call({action:a,location:c})}function w(P,$){var M=wn.Push,W=S(P,$);function J(){w(P,$)}if(g(M,W,J)){var j=p(W,f+1),L=j[0],F=j[1];try{o.pushState(L,"",F)}catch{r.location.assign(F)}y(M)}}function C(P,$){var M=wn.Replace,W=S(P,$);function J(){C(P,$)}if(g(M,W,J)){var j=p(W,f),L=j[0],F=j[1];o.replaceState(L,"",F),y(M)}}function R(P){o.go(P)}var x={get action(){return a},get location(){return c},createHref:v,push:w,replace:C,go:R,back:function(){R(-1)},forward:function(){R(1)},listen:function($){return d.push($)},block:function($){var M=h.push($);return h.length===1&&r.addEventListener(Sc,Cc),function(){M(),h.length||r.removeEventListener(Sc,Cc)}}};return x}function Cc(e){e.preventDefault(),e.returnValue=""}function _c(){var e=[];return{get length(){return e.length},push:function(n){return e.push(n),function(){e=e.filter(function(r){return r!==n})}},call:function(n){e.forEach(function(r){return r&&r(n)})}}}function Dy(){return Math.random().toString(36).substr(2,8)}function Br(e){var t=e.pathname,n=t===void 0?"/":t,r=e.search,o=r===void 0?"":r,i=e.hash,u=i===void 0?"":i;return o&&o!=="?"&&(n+=o.charAt(0)==="?"?o:"?"+o),u&&u!=="#"&&(n+=u.charAt(0)==="#"?u:"#"+u),n}function nn(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}/**
33- * React Router v6.3.0
34- *
35- * Copyright (c) Remix Software Inc.
36- *
37- * This source code is licensed under the MIT license found in the
38- * LICENSE.md file in the root directory of this source tree.
39- *
40- * @license MIT
41- */const Ls=D.exports.createContext(null),Ds=D.exports.createContext(null),yu=D.exports.createContext({outlet:null,matches:[]});function lt(e,t){if(!e)throw new Error(t)}function Ny(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?nn(t):t,o=Hg(r.pathname||"/",n);if(o==null)return null;let i=Dg(e);Hy(i);let u=null;for(let l=0;u==null&&l<i.length;++l)u=Yy(i[l],o);return u}function Dg(e,t,n,r){return t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=""),e.forEach((o,i)=>{let u={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(u.relativePath.startsWith(r)||lt(!1),u.relativePath=u.relativePath.slice(r.length));let l=Xt([r,u.relativePath]),a=n.concat(u);o.children&&o.children.length>0&&(o.index===!0&&lt(!1),Dg(o.children,t,a,l)),!(o.path==null&&!o.index)&&t.push({path:l,score:qy(l,o.index),routesMeta:a})}),t}function Hy(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ky(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const jy=/^:\w+$/,Vy=3,Uy=2,Gy=1,Wy=10,By=-2,Rc=e=>e==="*";function qy(e,t){let n=e.split("/"),r=n.length;return n.some(Rc)&&(r+=By),t&&(r+=Uy),n.filter(o=>!Rc(o)).reduce((o,i)=>o+(jy.test(i)?Vy:i===""?Gy:Wy),r)}function Ky(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Yy(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let u=0;u<n.length;++u){let l=n[u],a=u===n.length-1,s=o==="/"?t:t.slice(o.length)||"/",f=Qy({path:l.relativePath,caseSensitive:l.caseSensitive,end:a},s);if(!f)return null;Object.assign(r,f.params);let c=l.route;i.push({params:r,pathname:Xt([o,f.pathname]),pathnameBase:jg(Xt([o,f.pathnameBase])),route:c}),f.pathnameBase!=="/"&&(o=Xt([o,f.pathnameBase]))}return i}function Qy(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Jy(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],u=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((s,f,c)=>{if(f==="*"){let d=l[c]||"";u=i.slice(0,i.length-d.length).replace(/(.)\/+$/,"$1")}return s[f]=Xy(l[c]||""),s},{}),pathname:i,pathnameBase:u,pattern:e}}function Jy(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(u,l)=>(r.push(l),"([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(o,t?void 0:"i"),r]}function Xy(e,t){try{return decodeURIComponent(e)}catch{return e}}function Zy(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?nn(e):e;return{pathname:n?n.startsWith("/")?n:e0(n,t):t,search:n0(r),hash:r0(o)}}function e0(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ng(e,t,n){let r=typeof e=="string"?nn(e):e,o=e===""||r.pathname===""?"/":r.pathname,i;if(o==null)i=n;else{let l=t.length-1;if(o.startsWith("..")){let a=o.split("/");for(;a[0]==="..";)a.shift(),l-=1;r.pathname=a.join("/")}i=l>=0?t[l]:"/"}let u=Zy(r,i);return o&&o!=="/"&&o.endsWith("/")&&!u.pathname.endsWith("/")&&(u.pathname+="/"),u}function t0(e){return e===""||e.pathname===""?"/":typeof e=="string"?nn(e).pathname:e.pathname}function Hg(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=e.charAt(t.length);return n&&n!=="/"?null:e.slice(t.length)||"/"}const Xt=e=>e.join("/").replace(/\/\/+/g,"/"),jg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),n0=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,r0=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function o0(e){hr()||lt(!1);let{basename:t,navigator:n}=D.exports.useContext(Ls),{hash:r,pathname:o,search:i}=Ns(e),u=o;if(t!=="/"){let l=t0(e),a=l!=null&&l.endsWith("/");u=o==="/"?t+(a?"/":""):Xt([t,o])}return n.createHref({pathname:u,search:i,hash:r})}function hr(){return D.exports.useContext(Ds)!=null}function Ao(){return hr()||lt(!1),D.exports.useContext(Ds).location}function Vg(){hr()||lt(!1);let{basename:e,navigator:t}=D.exports.useContext(Ls),{matches:n}=D.exports.useContext(yu),{pathname:r}=Ao(),o=JSON.stringify(n.map(l=>l.pathnameBase)),i=D.exports.useRef(!1);return D.exports.useEffect(()=>{i.current=!0}),D.exports.useCallback(function(l,a){if(a===void 0&&(a={}),!i.current)return;if(typeof l=="number"){t.go(l);return}let s=Ng(l,JSON.parse(o),r);e!=="/"&&(s.pathname=Xt([e,s.pathname])),(a.replace?t.replace:t.push)(s,a.state)},[e,t,o,r])}function Ns(e){let{matches:t}=D.exports.useContext(yu),{pathname:n}=Ao(),r=JSON.stringify(t.map(o=>o.pathnameBase));return D.exports.useMemo(()=>Ng(e,JSON.parse(r),n),[e,r,n])}function i0(e,t){hr()||lt(!1);let{matches:n}=D.exports.useContext(yu),r=n[n.length-1],o=r?r.params:{};r&&r.pathname;let i=r?r.pathnameBase:"/";r&&r.route;let u=Ao(),l;if(t){var a;let d=typeof t=="string"?nn(t):t;i==="/"||((a=d.pathname)==null?void 0:a.startsWith(i))||lt(!1),l=d}else l=u;let s=l.pathname||"/",f=i==="/"?s:s.slice(i.length)||"/",c=Ny(e,{pathname:f});return u0(c&&c.map(d=>Object.assign({},d,{params:Object.assign({},o,d.params),pathname:Xt([i,d.pathname]),pathnameBase:d.pathnameBase==="/"?i:Xt([i,d.pathnameBase])})),n)}function u0(e,t){return t===void 0&&(t=[]),e==null?null:e.reduceRight((n,r,o)=>D.exports.createElement(yu.Provider,{children:r.route.element!==void 0?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,o+1))}}),null)}function sP(e){let{to:t,replace:n,state:r}=e;hr()||lt(!1);let o=Vg();return D.exports.useEffect(()=>{o(t,{replace:n,state:r})}),null}function l0(e){lt(!1)}function a0(e){let{basename:t="/",children:n=null,location:r,navigationType:o=wn.Pop,navigator:i,static:u=!1}=e;hr()&&lt(!1);let l=jg(t),a=D.exports.useMemo(()=>({basename:l,navigator:i,static:u}),[l,i,u]);typeof r=="string"&&(r=nn(r));let{pathname:s="/",search:f="",hash:c="",state:d=null,key:h="default"}=r,m=D.exports.useMemo(()=>{let v=Hg(s,l);return v==null?null:{pathname:v,search:f,hash:c,state:d,key:h}},[l,s,f,c,d,h]);return m==null?null:D.exports.createElement(Ls.Provider,{value:a},D.exports.createElement(Ds.Provider,{children:n,value:{location:m,navigationType:o}}))}function fP(e){let{children:t,location:n}=e;return i0(ga(t),n)}function ga(e){let t=[];return D.exports.Children.forEach(e,n=>{if(!D.exports.isValidElement(n))return;if(n.type===D.exports.Fragment){t.push.apply(t,ga(n.props.children));return}n.type!==l0&&lt(!1);let r={caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path};n.props.children&&(r.children=ga(n.props.children)),t.push(r)}),t}/**
42- * React Router DOM v6.3.0
43- *
44- * Copyright (c) Remix Software Inc.
45- *
46- * This source code is licensed under the MIT license found in the
47- * LICENSE.md file in the root directory of this source tree.
48- *
49- * @license MIT
50- */function Ji(){return Ji=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ji.apply(this,arguments)}function Ug(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}const s0=["onClick","reloadDocument","replace","state","target","to"],f0=["aria-current","caseSensitive","className","end","style","to","children"];function cP(e){let{basename:t,children:n,window:r}=e,o=D.exports.useRef();o.current==null&&(o.current=Ly({window:r}));let i=o.current,[u,l]=D.exports.useState({action:i.action,location:i.location});return D.exports.useLayoutEffect(()=>i.listen(l),[i]),D.exports.createElement(a0,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:i})}function c0(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}const d0=D.exports.forwardRef(function(t,n){let{onClick:r,reloadDocument:o,replace:i=!1,state:u,target:l,to:a}=t,s=Ug(t,s0),f=o0(a),c=p0(a,{replace:i,state:u,target:l});function d(h){r&&r(h),!h.defaultPrevented&&!o&&c(h)}return D.exports.createElement("a",Ji({},s,{href:f,onClick:d,ref:n,target:l}))}),dP=D.exports.forwardRef(function(t,n){let{"aria-current":r="page",caseSensitive:o=!1,className:i="",end:u=!1,style:l,to:a,children:s}=t,f=Ug(t,f0),c=Ao(),d=Ns(a),h=c.pathname,m=d.pathname;o||(h=h.toLowerCase(),m=m.toLowerCase());let v=h===m||!u&&h.startsWith(m)&&h.charAt(m.length)==="/",S=v?r:void 0,p;typeof i=="function"?p=i({isActive:v}):p=[i,v?"active":null].filter(Boolean).join(" ");let g=typeof l=="function"?l({isActive:v}):l;return D.exports.createElement(d0,Ji({},f,{"aria-current":S,className:p,ref:n,style:g,to:a}),typeof s=="function"?s({isActive:v}):s)});function p0(e,t){let{target:n,replace:r,state:o}=t===void 0?{}:t,i=Vg(),u=Ao(),l=Ns(e);return D.exports.useCallback(a=>{if(a.button===0&&(!n||n==="_self")&&!c0(a)){a.preventDefault();let s=!!r||Br(u)===Br(l);i(e,{replace:s,state:o})}},[u,i,l,r,o,n,e])}var Gg={exports:{}};/*!
51- Copyright (c) 2018 Jed Watson.
52- Licensed under the MIT License (MIT), see
53- http://jedwatson.github.io/classnames
54-*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(!!i){var u=typeof i;if(u==="string"||u==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var l=n.apply(null,i);l&&r.push(l)}}else if(u==="object")if(i.toString===Object.prototype.toString)for(var a in i)t.call(i,a)&&i[a]&&r.push(a);else r.push(i.toString())}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Gg);var pP=Gg.exports,g0=typeof global=="object"&&global&&global.Object===Object&&global,Wg=g0,v0=typeof self=="object"&&self&&self.Object===Object&&self,h0=Wg||v0||Function("return this")(),St=h0,m0=St.Symbol,rn=m0,Bg=Object.prototype,y0=Bg.hasOwnProperty,w0=Bg.toString,kr=rn?rn.toStringTag:void 0;function S0(e){var t=y0.call(e,kr),n=e[kr];try{e[kr]=void 0;var r=!0}catch{}var o=w0.call(e);return r&&(t?e[kr]=n:delete e[kr]),o}var C0=Object.prototype,_0=C0.toString;function R0(e){return _0.call(e)}var E0="[object Null]",P0="[object Undefined]",Ec=rn?rn.toStringTag:void 0;function mr(e){return e==null?e===void 0?P0:E0:Ec&&Ec in Object(e)?S0(e):R0(e)}function sr(e){return e!=null&&typeof e=="object"}var x0="[object Symbol]";function wu(e){return typeof e=="symbol"||sr(e)&&mr(e)==x0}function O0(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var I0=Array.isArray,yt=I0,$0=1/0,Pc=rn?rn.prototype:void 0,xc=Pc?Pc.toString:void 0;function qg(e){if(typeof e=="string")return e;if(yt(e))return O0(e,qg)+"";if(wu(e))return xc?xc.call(e):"";var t=e+"";return t=="0"&&1/e==-$0?"-0":t}var k0=/\s/;function M0(e){for(var t=e.length;t--&&k0.test(e.charAt(t)););return t}var A0=/^\s+/;function T0(e){return e&&e.slice(0,M0(e)+1).replace(A0,"")}function yo(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Oc=0/0,F0=/^[-+]0x[0-9a-f]+$/i,b0=/^0b[01]+$/i,z0=/^0o[0-7]+$/i,L0=parseInt;function Kg(e){if(typeof e=="number")return e;if(wu(e))return Oc;if(yo(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=yo(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=T0(e);var n=b0.test(e);return n||z0.test(e)?L0(e.slice(2),n?2:8):F0.test(e)?Oc:+e}var Ic=1/0,D0=17976931348623157e292;function N0(e){if(!e)return e===0?e:0;if(e=Kg(e),e===Ic||e===-Ic){var t=e<0?-1:1;return t*D0}return e===e?e:0}function H0(e){var t=N0(e),n=t%1;return t===t?n?t-n:t:0}function j0(e){return e}var V0="[object AsyncFunction]",U0="[object Function]",G0="[object GeneratorFunction]",W0="[object Proxy]";function Yg(e){if(!yo(e))return!1;var t=mr(e);return t==U0||t==G0||t==V0||t==W0}var B0=St["__core-js_shared__"],nl=B0,$c=function(){var e=/[^.]+$/.exec(nl&&nl.keys&&nl.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function q0(e){return!!$c&&$c in e}var K0=Function.prototype,Y0=K0.toString;function Mn(e){if(e!=null){try{return Y0.call(e)}catch{}try{return e+""}catch{}}return""}var Q0=/[\\^$.*+?()[\]{}|]/g,J0=/^\[object .+?Constructor\]$/,X0=Function.prototype,Z0=Object.prototype,ew=X0.toString,tw=Z0.hasOwnProperty,nw=RegExp("^"+ew.call(tw).replace(Q0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rw(e){if(!yo(e)||q0(e))return!1;var t=Yg(e)?nw:J0;return t.test(Mn(e))}function ow(e,t){return e==null?void 0:e[t]}function An(e,t){var n=ow(e,t);return rw(n)?n:void 0}var iw=An(St,"WeakMap"),va=iw,uw=function(){try{var e=An(Object,"defineProperty");return e({},"",{}),e}catch{}}(),kc=uw,lw=9007199254740991,aw=/^(?:0|[1-9]\d*)$/;function Qg(e,t){var n=typeof e;return t=t==null?lw:t,!!t&&(n=="number"||n!="symbol"&&aw.test(e))&&e>-1&&e%1==0&&e<t}function sw(e,t,n){t=="__proto__"&&kc?kc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Jg(e,t){return e===t||e!==e&&t!==t}var fw=9007199254740991;function Hs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=fw}function Xg(e){return e!=null&&Hs(e.length)&&!Yg(e)}var cw=Object.prototype;function dw(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||cw;return e===n}function pw(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var gw="[object Arguments]";function Mc(e){return sr(e)&&mr(e)==gw}var Zg=Object.prototype,vw=Zg.hasOwnProperty,hw=Zg.propertyIsEnumerable,mw=Mc(function(){return arguments}())?Mc:function(e){return sr(e)&&vw.call(e,"callee")&&!hw.call(e,"callee")},ev=mw;function yw(){return!1}var tv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ac=tv&&typeof module=="object"&&module&&!module.nodeType&&module,ww=Ac&&Ac.exports===tv,Tc=ww?St.Buffer:void 0,Sw=Tc?Tc.isBuffer:void 0,Cw=Sw||yw,ha=Cw,_w="[object Arguments]",Rw="[object Array]",Ew="[object Boolean]",Pw="[object Date]",xw="[object Error]",Ow="[object Function]",Iw="[object Map]",$w="[object Number]",kw="[object Object]",Mw="[object RegExp]",Aw="[object Set]",Tw="[object String]",Fw="[object WeakMap]",bw="[object ArrayBuffer]",zw="[object DataView]",Lw="[object Float32Array]",Dw="[object Float64Array]",Nw="[object Int8Array]",Hw="[object Int16Array]",jw="[object Int32Array]",Vw="[object Uint8Array]",Uw="[object Uint8ClampedArray]",Gw="[object Uint16Array]",Ww="[object Uint32Array]",ne={};ne[Lw]=ne[Dw]=ne[Nw]=ne[Hw]=ne[jw]=ne[Vw]=ne[Uw]=ne[Gw]=ne[Ww]=!0;ne[_w]=ne[Rw]=ne[bw]=ne[Ew]=ne[zw]=ne[Pw]=ne[xw]=ne[Ow]=ne[Iw]=ne[$w]=ne[kw]=ne[Mw]=ne[Aw]=ne[Tw]=ne[Fw]=!1;function Bw(e){return sr(e)&&Hs(e.length)&&!!ne[mr(e)]}function qw(e){return function(t){return e(t)}}var nv=typeof exports=="object"&&exports&&!exports.nodeType&&exports,qr=nv&&typeof module=="object"&&module&&!module.nodeType&&module,Kw=qr&&qr.exports===nv,rl=Kw&&Wg.process,Yw=function(){try{var e=qr&&qr.require&&qr.require("util").types;return e||rl&&rl.binding&&rl.binding("util")}catch{}}(),Fc=Yw,bc=Fc&&Fc.isTypedArray,Qw=bc?qw(bc):Bw,rv=Qw,Jw=Object.prototype,Xw=Jw.hasOwnProperty;function Zw(e,t){var n=yt(e),r=!n&&ev(e),o=!n&&!r&&ha(e),i=!n&&!r&&!o&&rv(e),u=n||r||o||i,l=u?pw(e.length,String):[],a=l.length;for(var s in e)(t||Xw.call(e,s))&&!(u&&(s=="length"||o&&(s=="offset"||s=="parent")||i&&(s=="buffer"||s=="byteLength"||s=="byteOffset")||Qg(s,a)))&&l.push(s);return l}function eS(e,t){return function(n){return e(t(n))}}var tS=eS(Object.keys,Object),nS=tS,rS=Object.prototype,oS=rS.hasOwnProperty;function iS(e){if(!dw(e))return nS(e);var t=[];for(var n in Object(e))oS.call(e,n)&&n!="constructor"&&t.push(n);return t}function js(e){return Xg(e)?Zw(e):iS(e)}var uS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lS=/^\w*$/;function Vs(e,t){if(yt(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||wu(e)?!0:lS.test(e)||!uS.test(e)||t!=null&&e in Object(t)}var aS=An(Object,"create"),wo=aS;function sS(){this.__data__=wo?wo(null):{},this.size=0}function fS(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var cS="__lodash_hash_undefined__",dS=Object.prototype,pS=dS.hasOwnProperty;function gS(e){var t=this.__data__;if(wo){var n=t[e];return n===cS?void 0:n}return pS.call(t,e)?t[e]:void 0}var vS=Object.prototype,hS=vS.hasOwnProperty;function mS(e){var t=this.__data__;return wo?t[e]!==void 0:hS.call(t,e)}var yS="__lodash_hash_undefined__";function wS(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=wo&&t===void 0?yS:t,this}function On(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}On.prototype.clear=sS;On.prototype.delete=fS;On.prototype.get=gS;On.prototype.has=mS;On.prototype.set=wS;function SS(){this.__data__=[],this.size=0}function Su(e,t){for(var n=e.length;n--;)if(Jg(e[n][0],t))return n;return-1}var CS=Array.prototype,_S=CS.splice;function RS(e){var t=this.__data__,n=Su(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():_S.call(t,n,1),--this.size,!0}function ES(e){var t=this.__data__,n=Su(t,e);return n<0?void 0:t[n][1]}function PS(e){return Su(this.__data__,e)>-1}function xS(e,t){var n=this.__data__,r=Su(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ft(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ft.prototype.clear=SS;Ft.prototype.delete=RS;Ft.prototype.get=ES;Ft.prototype.has=PS;Ft.prototype.set=xS;var OS=An(St,"Map"),So=OS;function IS(){this.size=0,this.__data__={hash:new On,map:new(So||Ft),string:new On}}function $S(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Cu(e,t){var n=e.__data__;return $S(t)?n[typeof t=="string"?"string":"hash"]:n.map}function kS(e){var t=Cu(this,e).delete(e);return this.size-=t?1:0,t}function MS(e){return Cu(this,e).get(e)}function AS(e){return Cu(this,e).has(e)}function TS(e,t){var n=Cu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function bt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bt.prototype.clear=IS;bt.prototype.delete=kS;bt.prototype.get=MS;bt.prototype.has=AS;bt.prototype.set=TS;var FS="Expected a function";function Us(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(FS);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var u=e.apply(this,r);return n.cache=i.set(o,u)||i,u};return n.cache=new(Us.Cache||bt),n}Us.Cache=bt;var bS=500;function zS(e){var t=Us(e,function(r){return n.size===bS&&n.clear(),r}),n=t.cache;return t}var LS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,DS=/\\(\\)?/g,NS=zS(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(LS,function(n,r,o,i){t.push(o?i.replace(DS,"$1"):r||n)}),t}),HS=NS;function Co(e){return e==null?"":qg(e)}function ov(e,t){return yt(e)?e:Vs(e,t)?[e]:HS(Co(e))}var jS=1/0;function _u(e){if(typeof e=="string"||wu(e))return e;var t=e+"";return t=="0"&&1/e==-jS?"-0":t}function iv(e,t){t=ov(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[_u(t[n++])];return n&&n==r?e:void 0}function VS(e,t,n){var r=e==null?void 0:iv(e,t);return r===void 0?n:r}function US(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function GS(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}function WS(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:GS(e,t,n)}var BS="\\ud800-\\udfff",qS="\\u0300-\\u036f",KS="\\ufe20-\\ufe2f",YS="\\u20d0-\\u20ff",QS=qS+KS+YS,JS="\\ufe0e\\ufe0f",XS="\\u200d",ZS=RegExp("["+XS+BS+QS+JS+"]");function uv(e){return ZS.test(e)}function e1(e){return e.split("")}var lv="\\ud800-\\udfff",t1="\\u0300-\\u036f",n1="\\ufe20-\\ufe2f",r1="\\u20d0-\\u20ff",o1=t1+n1+r1,i1="\\ufe0e\\ufe0f",u1="["+lv+"]",ma="["+o1+"]",ya="\\ud83c[\\udffb-\\udfff]",l1="(?:"+ma+"|"+ya+")",av="[^"+lv+"]",sv="(?:\\ud83c[\\udde6-\\uddff]){2}",fv="[\\ud800-\\udbff][\\udc00-\\udfff]",a1="\\u200d",cv=l1+"?",dv="["+i1+"]?",s1="(?:"+a1+"(?:"+[av,sv,fv].join("|")+")"+dv+cv+")*",f1=dv+cv+s1,c1="(?:"+[av+ma+"?",ma,sv,fv,u1].join("|")+")",d1=RegExp(ya+"(?="+ya+")|"+c1+f1,"g");function p1(e){return e.match(d1)||[]}function g1(e){return uv(e)?p1(e):e1(e)}function v1(e){return function(t){t=Co(t);var n=uv(t)?g1(t):void 0,r=n?n[0]:t.charAt(0),o=n?WS(n,1).join(""):t.slice(1);return r[e]()+o}}var h1=v1("toUpperCase"),m1=h1;function gP(e){return m1(Co(e).toLowerCase())}var y1=St.isFinite,w1=Math.min;function S1(e){var t=Math[e];return function(n,r){if(n=Kg(n),r=r==null?0:w1(H0(r),292),r&&y1(n)){var o=(Co(n)+"e").split("e"),i=t(o[0]+"e"+(+o[1]+r));return o=(Co(i)+"e").split("e"),+(o[0]+"e"+(+o[1]-r))}return t(n)}}function C1(){this.__data__=new Ft,this.size=0}function _1(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function R1(e){return this.__data__.get(e)}function E1(e){return this.__data__.has(e)}var P1=200;function x1(e,t){var n=this.__data__;if(n instanceof Ft){var r=n.__data__;if(!So||r.length<P1-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new bt(r)}return n.set(e,t),this.size=n.size,this}function It(e){var t=this.__data__=new Ft(e);this.size=t.size}It.prototype.clear=C1;It.prototype.delete=_1;It.prototype.get=R1;It.prototype.has=E1;It.prototype.set=x1;function O1(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var u=e[n];t(u,n,e)&&(i[o++]=u)}return i}function I1(){return[]}var $1=Object.prototype,k1=$1.propertyIsEnumerable,zc=Object.getOwnPropertySymbols,M1=zc?function(e){return e==null?[]:(e=Object(e),O1(zc(e),function(t){return k1.call(e,t)}))}:I1,A1=M1;function T1(e,t,n){var r=t(e);return yt(e)?r:US(r,n(e))}function Lc(e){return T1(e,js,A1)}var F1=An(St,"DataView"),wa=F1,b1=An(St,"Promise"),Sa=b1,z1=An(St,"Set"),Ca=z1,Dc="[object Map]",L1="[object Object]",Nc="[object Promise]",Hc="[object Set]",jc="[object WeakMap]",Vc="[object DataView]",D1=Mn(wa),N1=Mn(So),H1=Mn(Sa),j1=Mn(Ca),V1=Mn(va),dn=mr;(wa&&dn(new wa(new ArrayBuffer(1)))!=Vc||So&&dn(new So)!=Dc||Sa&&dn(Sa.resolve())!=Nc||Ca&&dn(new Ca)!=Hc||va&&dn(new va)!=jc)&&(dn=function(e){var t=mr(e),n=t==L1?e.constructor:void 0,r=n?Mn(n):"";if(r)switch(r){case D1:return Vc;case N1:return Dc;case H1:return Nc;case j1:return Hc;case V1:return jc}return t});var Uc=dn,U1=St.Uint8Array,Gc=U1,G1="__lodash_hash_undefined__";function W1(e){return this.__data__.set(e,G1),this}function B1(e){return this.__data__.has(e)}function Xi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new bt;++t<n;)this.add(e[t])}Xi.prototype.add=Xi.prototype.push=W1;Xi.prototype.has=B1;function q1(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function K1(e,t){return e.has(t)}var Y1=1,Q1=2;function pv(e,t,n,r,o,i){var u=n&Y1,l=e.length,a=t.length;if(l!=a&&!(u&&a>l))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var c=-1,d=!0,h=n&Q1?new Xi:void 0;for(i.set(e,t),i.set(t,e);++c<l;){var m=e[c],v=t[c];if(r)var S=u?r(v,m,c,t,e,i):r(m,v,c,e,t,i);if(S!==void 0){if(S)continue;d=!1;break}if(h){if(!q1(t,function(p,g){if(!K1(h,g)&&(m===p||o(m,p,n,r,i)))return h.push(g)})){d=!1;break}}else if(!(m===v||o(m,v,n,r,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function J1(e){var t=-1,n=Array(e.size);return e.forEach(function(r,o){n[++t]=[o,r]}),n}function X1(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Z1=1,eC=2,tC="[object Boolean]",nC="[object Date]",rC="[object Error]",oC="[object Map]",iC="[object Number]",uC="[object RegExp]",lC="[object Set]",aC="[object String]",sC="[object Symbol]",fC="[object ArrayBuffer]",cC="[object DataView]",Wc=rn?rn.prototype:void 0,ol=Wc?Wc.valueOf:void 0;function dC(e,t,n,r,o,i,u){switch(n){case cC:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fC:return!(e.byteLength!=t.byteLength||!i(new Gc(e),new Gc(t)));case tC:case nC:case iC:return Jg(+e,+t);case rC:return e.name==t.name&&e.message==t.message;case uC:case aC:return e==t+"";case oC:var l=J1;case lC:var a=r&Z1;if(l||(l=X1),e.size!=t.size&&!a)return!1;var s=u.get(e);if(s)return s==t;r|=eC,u.set(e,t);var f=pv(l(e),l(t),r,o,i,u);return u.delete(e),f;case sC:if(ol)return ol.call(e)==ol.call(t)}return!1}var pC=1,gC=Object.prototype,vC=gC.hasOwnProperty;function hC(e,t,n,r,o,i){var u=n&pC,l=Lc(e),a=l.length,s=Lc(t),f=s.length;if(a!=f&&!u)return!1;for(var c=a;c--;){var d=l[c];if(!(u?d in t:vC.call(t,d)))return!1}var h=i.get(e),m=i.get(t);if(h&&m)return h==t&&m==e;var v=!0;i.set(e,t),i.set(t,e);for(var S=u;++c<a;){d=l[c];var p=e[d],g=t[d];if(r)var y=u?r(g,p,d,t,e,i):r(p,g,d,e,t,i);if(!(y===void 0?p===g||o(p,g,n,r,i):y)){v=!1;break}S||(S=d=="constructor")}if(v&&!S){var w=e.constructor,C=t.constructor;w!=C&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof C=="function"&&C instanceof C)&&(v=!1)}return i.delete(e),i.delete(t),v}var mC=1,Bc="[object Arguments]",qc="[object Array]",ti="[object Object]",yC=Object.prototype,Kc=yC.hasOwnProperty;function wC(e,t,n,r,o,i){var u=yt(e),l=yt(t),a=u?qc:Uc(e),s=l?qc:Uc(t);a=a==Bc?ti:a,s=s==Bc?ti:s;var f=a==ti,c=s==ti,d=a==s;if(d&&ha(e)){if(!ha(t))return!1;u=!0,f=!1}if(d&&!f)return i||(i=new It),u||rv(e)?pv(e,t,n,r,o,i):dC(e,t,a,n,r,o,i);if(!(n&mC)){var h=f&&Kc.call(e,"__wrapped__"),m=c&&Kc.call(t,"__wrapped__");if(h||m){var v=h?e.value():e,S=m?t.value():t;return i||(i=new It),o(v,S,n,r,i)}}return d?(i||(i=new It),hC(e,t,n,r,o,i)):!1}function Gs(e,t,n,r,o){return e===t?!0:e==null||t==null||!sr(e)&&!sr(t)?e!==e&&t!==t:wC(e,t,n,r,Gs,o)}var SC=1,CC=2;function _C(e,t,n,r){var o=n.length,i=o,u=!r;if(e==null)return!i;for(e=Object(e);o--;){var l=n[o];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<i;){l=n[o];var a=l[0],s=e[a],f=l[1];if(u&&l[2]){if(s===void 0&&!(a in e))return!1}else{var c=new It;if(r)var d=r(s,f,a,e,t,c);if(!(d===void 0?Gs(f,s,SC|CC,r,c):d))return!1}}return!0}function gv(e){return e===e&&!yo(e)}function RC(e){for(var t=js(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,gv(o)]}return t}function vv(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function EC(e){var t=RC(e);return t.length==1&&t[0][2]?vv(t[0][0],t[0][1]):function(n){return n===e||_C(n,e,t)}}function PC(e,t){return e!=null&&t in Object(e)}function xC(e,t,n){t=ov(t,e);for(var r=-1,o=t.length,i=!1;++r<o;){var u=_u(t[r]);if(!(i=e!=null&&n(e,u)))break;e=e[u]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Hs(o)&&Qg(u,o)&&(yt(e)||ev(e)))}function OC(e,t){return e!=null&&xC(e,t,PC)}var IC=1,$C=2;function kC(e,t){return Vs(e)&&gv(t)?vv(_u(e),t):function(n){var r=VS(n,e);return r===void 0&&r===t?OC(n,e):Gs(t,r,IC|$C)}}function MC(e){return function(t){return t==null?void 0:t[e]}}function AC(e){return function(t){return iv(t,e)}}function TC(e){return Vs(e)?MC(_u(e)):AC(e)}function FC(e){return typeof e=="function"?e:e==null?j0:typeof e=="object"?yt(e)?kC(e[0],e[1]):EC(e):TC(e)}function bC(e,t,n,r){for(var o=-1,i=e==null?0:e.length;++o<i;){var u=e[o];t(r,u,n(u),e)}return r}function zC(e){return function(t,n,r){for(var o=-1,i=Object(t),u=r(t),l=u.length;l--;){var a=u[e?l:++o];if(n(i[a],a,i)===!1)break}return t}}var LC=zC(),DC=LC;function NC(e,t){return e&&DC(e,t,js)}function HC(e,t){return function(n,r){if(n==null)return n;if(!Xg(n))return e(n,r);for(var o=n.length,i=t?o:-1,u=Object(n);(t?i--:++i<o)&&r(u[i],i,u)!==!1;);return n}}var jC=HC(NC),VC=jC;function UC(e,t,n,r){return VC(e,function(o,i,u){t(r,o,n(o),u)}),r}function GC(e,t){return function(n,r){var o=yt(n)?bC:UC,i=t?t():{};return o(n,e,FC(r),i)}}var WC=S1("floor"),vP=WC,BC=Object.prototype,qC=BC.hasOwnProperty,KC=GC(function(e,t,n){qC.call(e,n)?e[n].push(t):sw(e,n,[t])}),hP=KC;function ot(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function fr(e){return!!e&&!!e[Ve]}function In(e){return!!e&&(function(t){if(!t||typeof t!="object")return!1;var n=Object.getPrototypeOf(t);if(n===null)return!0;var r=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return r===Object||typeof r=="function"&&Function.toString.call(r)===n_}(e)||Array.isArray(e)||!!e[nd]||!!e.constructor[nd]||Ws(e)||Bs(e))}function _o(e,t,n){n===void 0&&(n=!1),yr(e)===0?(n?Object.keys:Qs)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function yr(e){var t=e[Ve];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ws(e)?2:Bs(e)?3:0}function _a(e,t){return yr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function YC(e,t){return yr(e)===2?e.get(t):e[t]}function hv(e,t,n){var r=yr(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function QC(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Ws(e){return e_&&e instanceof Map}function Bs(e){return t_&&e instanceof Set}function pn(e){return e.o||e.t}function qs(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=r_(e);delete t[Ve];for(var n=Qs(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Ro(e,t){return t===void 0&&(t=!1),Ks(e)||fr(e)||!In(e)||(yr(e)>1&&(e.set=e.add=e.clear=e.delete=JC),Object.freeze(e),t&&_o(e,function(n,r){return Ro(r,!0)},!0)),e}function JC(){ot(2)}function Ks(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function ht(e){var t=o_[e];return t||ot(18,e),t}function Yc(){return Eo}function il(e,t){t&&(ht("Patches"),e.u=[],e.s=[],e.v=t)}function Zi(e){Ra(e),e.p.forEach(XC),e.p=null}function Ra(e){e===Eo&&(Eo=e.l)}function Qc(e){return Eo={p:[],l:Eo,h:e,m:!0,_:0}}function XC(e){var t=e[Ve];t.i===0||t.i===1?t.j():t.O=!0}function ul(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||ht("ES5").S(t,e,r),r?(n[Ve].P&&(Zi(t),ot(4)),In(e)&&(e=eu(t,e),t.l||tu(t,e)),t.u&&ht("Patches").M(n[Ve].t,e,t.u,t.s)):e=eu(t,n,[]),Zi(t),t.u&&t.v(t.u,t.s),e!==mv?e:void 0}function eu(e,t,n){if(Ks(t))return t;var r=t[Ve];if(!r)return _o(t,function(i,u){return Jc(e,r,t,i,u,n)},!0),t;if(r.A!==e)return t;if(!r.P)return tu(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=qs(r.k):r.o;_o(r.i===3?new Set(o):o,function(i,u){return Jc(e,r,o,i,u,n)}),tu(e,o,!1),n&&e.u&&ht("Patches").R(r,n,e.u,e.s)}return r.o}function Jc(e,t,n,r,o,i){if(fr(o)){var u=eu(e,o,i&&t&&t.i!==3&&!_a(t.D,r)?i.concat(r):void 0);if(hv(n,r,u),!fr(u))return;e.m=!1}if(In(o)&&!Ks(o)){if(!e.h.F&&e._<1)return;eu(e,o),t&&t.A.l||tu(e,o)}}function tu(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Ro(t,n)}function ll(e,t){var n=e[Ve];return(n?pn(n):e)[t]}function Xc(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ea(e){e.P||(e.P=!0,e.l&&Ea(e.l))}function al(e){e.o||(e.o=qs(e.t))}function Pa(e,t,n){var r=Ws(t)?ht("MapSet").N(t,n):Bs(t)?ht("MapSet").T(t,n):e.g?function(o,i){var u=Array.isArray(o),l={i:u?1:0,A:i?i.A:Yc(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},a=l,s=xa;u&&(a=[l],s=Lr);var f=Proxy.revocable(a,s),c=f.revoke,d=f.proxy;return l.k=d,l.j=c,d}(t,n):ht("ES5").J(t,n);return(n?n.A:Yc()).p.push(r),r}function ZC(e){return fr(e)||ot(22,e),function t(n){if(!In(n))return n;var r,o=n[Ve],i=yr(n);if(o){if(!o.P&&(o.i<4||!ht("ES5").K(o)))return o.t;o.I=!0,r=Zc(n,i),o.I=!1}else r=Zc(n,i);return _o(r,function(u,l){o&&YC(o.t,u)===l||hv(r,u,t(l))}),i===3?new Set(r):r}(e)}function Zc(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return qs(e)}var ed,Eo,Ys=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",e_=typeof Map!="undefined",t_=typeof Set!="undefined",td=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",mv=Ys?Symbol.for("immer-nothing"):((ed={})["immer-nothing"]=!0,ed),nd=Ys?Symbol.for("immer-draftable"):"__$immer_draftable",Ve=Ys?Symbol.for("immer-state"):"__$immer_state",n_=""+Object.prototype.constructor,Qs=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,r_=Object.getOwnPropertyDescriptors||function(e){var t={};return Qs(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},o_={},xa={get:function(e,t){if(t===Ve)return e;var n=pn(e);if(!_a(n,t))return function(o,i,u){var l,a=Xc(i,u);return a?"value"in a?a.value:(l=a.get)===null||l===void 0?void 0:l.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!In(r)?r:r===ll(e.t,t)?(al(e),e.o[t]=Pa(e.A.h,r,e)):r},has:function(e,t){return t in pn(e)},ownKeys:function(e){return Reflect.ownKeys(pn(e))},set:function(e,t,n){var r=Xc(pn(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=ll(pn(e),t),i=o==null?void 0:o[Ve];if(i&&i.t===n)return e.o[t]=n,e.D[t]=!1,!0;if(QC(n,o)&&(n!==void 0||_a(e.t,t)))return!0;al(e),Ea(e)}return e.o[t]===n&&typeof n!="number"&&(n!==void 0||t in e.o)||(e.o[t]=n,e.D[t]=!0,!0)},deleteProperty:function(e,t){return ll(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,al(e),Ea(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=pn(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){ot(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){ot(12)}},Lr={};_o(xa,function(e,t){Lr[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Lr.deleteProperty=function(e,t){return Lr.set.call(this,e,t,void 0)},Lr.set=function(e,t,n){return xa.set.call(this,e[0],t,n,e[0])};var i_=function(){function e(n){var r=this;this.g=td,this.F=!0,this.produce=function(o,i,u){if(typeof o=="function"&&typeof i!="function"){var l=i;i=o;var a=r;return function(v){var S=this;v===void 0&&(v=l);for(var p=arguments.length,g=Array(p>1?p-1:0),y=1;y<p;y++)g[y-1]=arguments[y];return a.produce(v,function(w){var C;return(C=i).call.apply(C,[S,w].concat(g))})}}var s;if(typeof i!="function"&&ot(6),u!==void 0&&typeof u!="function"&&ot(7),In(o)){var f=Qc(r),c=Pa(r,o,void 0),d=!0;try{s=i(c),d=!1}finally{d?Zi(f):Ra(f)}return typeof Promise!="undefined"&&s instanceof Promise?s.then(function(v){return il(f,u),ul(v,f)},function(v){throw Zi(f),v}):(il(f,u),ul(s,f))}if(!o||typeof o!="object"){if((s=i(o))===void 0&&(s=o),s===mv&&(s=void 0),r.F&&Ro(s,!0),u){var h=[],m=[];ht("Patches").M(o,s,h,m),u(h,m)}return s}ot(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(s){for(var f=arguments.length,c=Array(f>1?f-1:0),d=1;d<f;d++)c[d-1]=arguments[d];return r.produceWithPatches(s,function(h){return o.apply(void 0,[h].concat(c))})};var u,l,a=r.produce(o,i,function(s,f){u=s,l=f});return typeof Promise!="undefined"&&a instanceof Promise?a.then(function(s){return[s,u,l]}):[a,u,l]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){In(n)||ot(8),fr(n)&&(n=ZC(n));var r=Qc(this),o=Pa(this,n,void 0);return o[Ve].C=!0,Ra(r),o},t.finishDraft=function(n,r){var o=n&&n[Ve],i=o.A;return il(i,r),ul(void 0,i)},t.setAutoFreeze=function(n){this.F=n},t.setUseProxies=function(n){n&&!td&&ot(20),this.g=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var u=ht("Patches").$;return fr(n)?u(n,r):this.produce(n,function(l){return u(l,r)})},e}(),Ue=new i_,yv=Ue.produce;Ue.produceWithPatches.bind(Ue);Ue.setAutoFreeze.bind(Ue);Ue.setUseProxies.bind(Ue);Ue.applyPatches.bind(Ue);Ue.createDraft.bind(Ue);Ue.finishDraft.bind(Ue);const cr=Symbol(),wv=e=>!!e[cr],u_=e=>!e[cr].c,Mr=e=>{var t,n;(n=(t=e[cr]).c)==null||n.call(t)},Ci=(e,t)=>{const n=e[cr].o,r=t[cr].o;return n===r||e===r||wv(n)&&Ci(n,t)},rd=e=>{const t={o:e,c:null},n=new Promise(r=>{t.c=()=>{t.c=null,r()},e.then(t.c,t.c)});return n[cr]=t,n};var l_=Object.defineProperty,a_=Object.defineProperties,s_=Object.getOwnPropertyDescriptors,od=Object.getOwnPropertySymbols,f_=Object.prototype.hasOwnProperty,c_=Object.prototype.propertyIsEnumerable,id=(e,t,n)=>t in e?l_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d_=(e,t)=>{for(var n in t||(t={}))f_.call(t,n)&&id(e,n,t[n]);if(od)for(var n of od(t))c_.call(t,n)&&id(e,n,t[n]);return e},p_=(e,t)=>a_(e,s_(t));const ni=e=>"init"in e,Oa="r",Ia="w",$a="c",ka="s",ud="h",g_="n",v_="l",h_="a",m_="m",y_=e=>{const t=new WeakMap,n=new WeakMap,r=new Map;let o,i;if(({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&(o=new Set,i=new Set),e)for(const[_,E]of e){const O={v:E,r:0,d:new Map};({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&(Object.freeze(O),ni(_)||console.warn("Found initial value for derived atom which can cause unexpected behavior",_)),t.set(_,O)}const u=new WeakMap,l=(_,E,O)=>{let A=u.get(E);A||(A=new Map,u.set(E,A)),O.then(()=>{A.get(_)===O&&(A.delete(_),A.size||u.delete(E))}),A.set(_,O)},a=_=>{const E=new Set,O=u.get(_);return O&&(u.delete(_),O.forEach((A,T)=>{Mr(A),E.add(T)})),E},s=new WeakMap,f=_=>{let E=s.get(_);return E||(E=new Map,s.set(_,E)),E},c=(_,E)=>{if(_){const O=f(_);let A=O.get(E);return A||(A=c(_.p,E),A&&("p"in A&&A.p.then(()=>O.delete(E)),O.set(E,A))),A}return t.get(E)},d=(_,E,O)=>{if(({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&Object.freeze(O),_)f(_).set(E,O);else{const A=t.get(E);t.set(E,O),r.has(E)||r.set(E,A)}},h=(_,E=new Map,O)=>{if(!O)return E;const A=new Map;let T=!1;return O.forEach(k=>{var V;const G=((V=c(_,k))==null?void 0:V.r)||0;A.set(k,G),E.get(k)!==G&&(T=!0)}),E.size===A.size&&!T?E:A},m=(_,E,O,A,T)=>{const k=c(_,E);if(k){if(T&&(!("p"in k)||!Ci(k.p,T)))return k;"p"in k&&Mr(k.p)}const V={v:O,r:(k==null?void 0:k.r)||0,d:h(_,k==null?void 0:k.d,A)};return!k||!("v"in k)||!Object.is(k.v,O)?(++V.r,V.d.has(E)&&(V.d=new Map(V.d).set(E,V.r))):V.d!==k.d&&(V.d.size!==k.d.size||!Array.from(V.d.keys()).every(G=>k.d.has(G)))&&Promise.resolve().then(()=>{F(_)}),d(_,E,V),V},v=(_,E,O,A,T)=>{const k=c(_,E);if(k){if(T&&(!("p"in k)||!Ci(k.p,T)))return k;"p"in k&&Mr(k.p)}const V={e:O,r:(k==null?void 0:k.r)||0,d:h(_,k==null?void 0:k.d,A)};return d(_,E,V),V},S=(_,E,O,A)=>{const T=c(_,E);if(T&&"p"in T){if(Ci(T.p,O))return T;Mr(T.p)}l(_,E,O);const k={p:O,r:(T==null?void 0:T.r)||0,d:h(_,T==null?void 0:T.d,A)};return d(_,E,k),k},p=(_,E,O,A)=>{if(O instanceof Promise){const T=rd(O.then(k=>{m(_,E,k,A,T),F(_)}).catch(k=>{if(k instanceof Promise)return wv(k)?k.then(()=>{y(_,E,!0)}):k;v(_,E,k,A,T),F(_)}));return S(_,E,T,A)}return m(_,E,O,A)},g=(_,E)=>{const O=c(_,E);if(O){"p"in O&&Mr(O.p);const A=p_(d_({},O),{i:O.r});d(_,E,A)}else({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&console.warn("[Bug] could not invalidate non existing atom",E)},y=(_,E,O)=>{if(!O){const T=c(_,E);if(T&&(T.r!==T.i&&"p"in T&&!u_(T.p)||(T.d.forEach((k,V)=>{if(V!==E)if(!n.has(V))y(_,V);else{const G=c(_,V);G&&G.r===G.i&&y(_,V)}}),Array.from(T.d).every(([k,V])=>{const G=c(_,k);return G&&"v"in G&&G.r===V}))))return T}const A=new Set;try{const T=E.read(k=>{A.add(k);const V=k===E?c(_,k):y(_,k);if(V){if("e"in V)throw V.e;if("p"in V)throw V.p;return V.v}if(ni(k))return k.init;throw new Error("no atom init")});return p(_,E,T,A)}catch(T){if(T instanceof Promise){const k=rd(T);return S(_,E,k,A)}return v(_,E,T,A)}},w=(_,E)=>y(E,_),C=_=>{let E=n.get(_);return E||(E=J(_)),E},R=(_,E)=>!E.l.size&&(!E.t.size||E.t.size===1&&E.t.has(_)),x=_=>{const E=n.get(_);E&&R(_,E)&&j(_)},P=(_,E)=>{const O=n.get(E);O==null||O.t.forEach(A=>{A!==E&&(g(_,A),P(_,A))})},$=(_,E,O)=>{let A=!0;const T=(G,Z)=>{const q=y(_,G);if("e"in q)throw q.e;if("p"in q){if(Z!=null&&Z.unstable_promise)return q.p.then(()=>T(G,Z));throw({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&console.info("Reading pending atom state in write operation. We throw a promise for now.",G),q.p}if("v"in q)return q.v;throw({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&console.warn("[Bug] no value found while reading atom in write operation. This is probably a bug.",G),new Error("no value found")},k=(G,Z)=>{let q;if(G===E){if(!ni(G))throw new Error("atom not writable");a(G).forEach(Be=>{Be!==_&&p(Be,G,Z)}),p(_,G,Z),P(_,G)}else q=$(_,G,Z);return A||F(_),q},V=E.write(T,k,O);return A=!1,_=void 0,V},M=(_,E,O)=>{const A=$(O,_,E);return F(O),A},W=_=>!!_.write,J=(_,E)=>{const O={t:new Set(E&&[E]),l:new Set};if(n.set(_,O),({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&i.add(_),y(void 0,_).d.forEach((T,k)=>{const V=n.get(k);V?V.t.add(_):k!==_&&J(k,_)}),W(_)&&_.onMount){const T=V=>M(_,V),k=_.onMount(T);k&&(O.u=k)}return O},j=_=>{var E;const O=(E=n.get(_))==null?void 0:E.u;O&&O(),n.delete(_),({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&i.delete(_);const A=c(void 0,_);A?A.d.forEach((T,k)=>{if(k!==_){const V=n.get(k);V&&(V.t.delete(_),R(k,V)&&j(k))}}):({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&console.warn("[Bug] could not find atom state to unmount",_)},L=(_,E,O)=>{const A=new Set(E.d.keys());O==null||O.forEach((T,k)=>{if(A.has(k)){A.delete(k);return}const V=n.get(k);V&&(V.t.delete(_),R(k,V)&&j(k))}),A.forEach(T=>{const k=n.get(T);k?k.t.add(_):n.has(_)&&J(T,_)})},F=_=>{if(_){f(_).forEach((O,A)=>{if(O!==t.get(A)){const T=n.get(A);T==null||T.l.forEach(k=>k(_))}});return}for(;r.size;){const E=Array.from(r);r.clear(),E.forEach(([O,A])=>{const T=c(void 0,O);T&&T.d!==(A==null?void 0:A.d)&&L(O,T,A==null?void 0:A.d);const k=n.get(O);k==null||k.l.forEach(V=>V())})}({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&o.forEach(E=>E())},U=_=>{f(_).forEach((O,A)=>{const T=t.get(A);(O.r>((T==null?void 0:T.r)||0)||"v"in O&&O.r===(T==null?void 0:T.r)&&O.d!==(T==null?void 0:T.d))&&(t.set(A,O),O.d!==(T==null?void 0:T.d)&&L(A,O,T==null?void 0:T.d))})},N=(_,E)=>{E&&U(E),F(void 0)},I=(_,E)=>{const A=C(_).l;return A.add(E),()=>{A.delete(E),x(_)}},z=(_,E)=>{for(const[O,A]of _)ni(O)&&(p(E,O,A),P(E,O));F(E)};return({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"?{[Oa]:w,[Ia]:M,[$a]:N,[ka]:I,[ud]:z,[g_]:_=>(o.add(_),()=>{o.delete(_)}),[v_]:()=>i.values(),[h_]:_=>t.get(_),[m_]:_=>n.get(_)}:{[Oa]:w,[Ia]:M,[$a]:N,[ka]:I,[ud]:z}},w_=(e,t)=>({s:t?t(e).SECRET_INTERNAL_store:y_(e)}),sl=new Map,Sv=e=>(sl.has(e)||sl.set(e,D.exports.createContext(w_())),sl.get(e));let S_=0;function Ma(e,t){const n=`atom${++S_}`,r={toString:()=>n};return typeof e=="function"?r.read=e:(r.init=e,r.read=o=>o(r),r.write=(o,i,u)=>i(r,typeof u=="function"?u(o(r)):u)),t&&(r.write=t),r}function C_(e,t){const n=Sv(t),{s:r}=D.exports.useContext(n),o=D.exports.useCallback(s=>{const f=r[Oa](e,s);if("e"in f)throw f.e;if("p"in f)throw f.p;if("v"in f)return f.v;throw new Error("no atom value")},[r,e]),[[i,u,l],a]=D.exports.useReducer(D.exports.useCallback((s,f)=>{const c=o(f);return Object.is(s[1],c)&&s[2]===e?s:[f,c,e]},[o,e]),void 0,()=>{const f=o(void 0);return[void 0,f,e]});return l!==e&&a(void 0),D.exports.useEffect(()=>{const s=r[ka](e,a);return a(void 0),s},[r,e]),D.exports.useEffect(()=>{r[$a](e,i)}),D.exports.useDebugValue(u),u}function __(e,t){const n=Sv(t),{s:r,w:o}=D.exports.useContext(n);return D.exports.useCallback(u=>{if(({BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0}&&"production")!=="production"&&!("write"in e))throw new Error("not writable atom");const l=a=>r[Ia](e,u,a);return o?o(l):l()},[r,o,e])}function mP(e,t){return"scope"in e&&(console.warn("atom.scope is deprecated. Please do useAtom(atom, scope) instead."),t=e.scope),[C_(e,t),__(e,t)]}function yP(e){const t=Ma(e,(n,r,o)=>r(t,yv(n(t),typeof o=="function"?o:()=>o)));return t}const R_=Symbol();function E_(e){let t,n;return{getItem:r=>{const o=u=>(u=u||"",t!==u&&(n=JSON.parse(u),t=u),n),i=e().getItem(r);return i instanceof Promise?i.then(o):o(i)},setItem:(r,o)=>e().setItem(r,JSON.stringify(o)),removeItem:r=>e().removeItem(r)}}const Cv=E_(()=>localStorage);Cv.subscribe=(e,t)=>{const n=r=>{r.key===e&&r.newValue&&t(JSON.parse(r.newValue))};return window.addEventListener("storage",n),()=>{window.removeEventListener("storage",n)}};function wP(e,t,n=Cv){const r=()=>{try{const u=n.getItem(e);return u instanceof Promise?u.catch(()=>t):u}catch{return t}},o=Ma(n.delayInit?t:r());return o.onMount=u=>{let l;if(n.subscribe&&(l=n.subscribe(e,u),u(r())),n.delayInit){const a=r();a instanceof Promise?a.then(u):u(a)}return l},Ma(u=>u(o),(u,l,a)=>{if(a===R_)return l(o,t),n.removeItem(e);const s=typeof a=="function"?a(u(o)):a;return l(o,s),n.setItem(e,s)})}/*! *****************************************************************************
55-Copyright (c) Microsoft Corporation.
56-
57-Permission to use, copy, modify, and/or distribute this software for any
58-purpose with or without fee is hereby granted.
59-
60-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
61-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
62-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
63-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
64-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
65-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
66-PERFORMANCE OF THIS SOFTWARE.
67-***************************************************************************** */function fl(e,t,n,r){function o(i){return i instanceof n?i:new n(function(u){u(i)})}return new(n||(n=Promise))(function(i,u){function l(f){try{s(r.next(f))}catch(c){u(c)}}function a(f){try{s(r.throw(f))}catch(c){u(c)}}function s(f){f.done?i(f.value):o(f.value).then(l,a)}s((r=r.apply(e,t||[])).next())})}function cl(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(s){return function(f){return a([s,f])}}function a(s){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,o=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(s[0]===6&&n.label<i[1]){n.label=i[1],i=s;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(s);break}i[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(f){s=[6,f],o=0}finally{r=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}function P_(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),o,i=[],u;try{for(;(t===void 0||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(l){u={error:l}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(u)throw u.error}}return i}function x_(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(P_(arguments[t]));return e}var O_={withStackTrace:!1},_v=function(e,t,n){n===void 0&&(n=O_);var r=t.isOk()?{type:"Ok",value:t.value}:{type:"Err",value:t.error},o=n.withStackTrace?new Error().stack:void 0;return{data:r,message:e,stack:o}},Aa;(function(e){function t(n,r){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];try{var u=n.apply(void 0,x_(o));return _i(u)}catch(l){return Ri(r?r(l):l)}}}e.fromThrowable=t})(Aa||(Aa={}));var _i=function(e){return new gn(e)},Ri=function(e){return new vn(e)},gn=function(){function e(t){this.value=t}return e.prototype.isOk=function(){return!0},e.prototype.isErr=function(){return!this.isOk()},e.prototype.map=function(t){return _i(t(this.value))},e.prototype.mapErr=function(t){return _i(this.value)},e.prototype.andThen=function(t){return t(this.value)},e.prototype.orElse=function(t){return _i(this.value)},e.prototype.asyncAndThen=function(t){return t(this.value)},e.prototype.asyncMap=function(t){return Rv.fromSafePromise(t(this.value))},e.prototype.unwrapOr=function(t){return this.value},e.prototype.match=function(t,n){return t(this.value)},e.prototype._unsafeUnwrap=function(t){return this.value},e.prototype._unsafeUnwrapErr=function(t){throw _v("Called `_unsafeUnwrapErr` on an Ok",this,t)},e}(),vn=function(){function e(t){this.error=t}return e.prototype.isOk=function(){return!1},e.prototype.isErr=function(){return!this.isOk()},e.prototype.map=function(t){return Ri(this.error)},e.prototype.mapErr=function(t){return Ri(t(this.error))},e.prototype.andThen=function(t){return Ri(this.error)},e.prototype.orElse=function(t){return t(this.error)},e.prototype.asyncAndThen=function(t){return ld(this.error)},e.prototype.asyncMap=function(t){return ld(this.error)},e.prototype.unwrapOr=function(t){return t},e.prototype.match=function(t,n){return n(this.error)},e.prototype._unsafeUnwrap=function(t){throw _v("Called `_unsafeUnwrap` on an Err",this,t)},e.prototype._unsafeUnwrapErr=function(t){return this.error},e}();Aa.fromThrowable;var Rv=function(){function e(t){this._promise=t}return e.fromSafePromise=function(t){var n=t.then(function(r){return new gn(r)});return new e(n)},e.fromPromise=function(t,n){var r=t.then(function(o){return new gn(o)}).catch(function(o){return new vn(n(o))});return new e(r)},e.prototype.map=function(t){var n=this;return new e(this._promise.then(function(r){return fl(n,void 0,void 0,function(){var o;return cl(this,function(i){switch(i.label){case 0:return r.isErr()?[2,new vn(r.error)]:(o=gn.bind,[4,t(r.value)]);case 1:return[2,new(o.apply(gn,[void 0,i.sent()]))]}})})}))},e.prototype.mapErr=function(t){var n=this;return new e(this._promise.then(function(r){return fl(n,void 0,void 0,function(){var o;return cl(this,function(i){switch(i.label){case 0:return r.isOk()?[2,new gn(r.value)]:(o=vn.bind,[4,t(r.error)]);case 1:return[2,new(o.apply(vn,[void 0,i.sent()]))]}})})}))},e.prototype.andThen=function(t){return new e(this._promise.then(function(n){if(n.isErr())return new vn(n.error);var r=t(n.value);return r instanceof e?r._promise:r}))},e.prototype.orElse=function(t){var n=this;return new e(this._promise.then(function(r){return fl(n,void 0,void 0,function(){return cl(this,function(o){return r.isErr()?[2,t(r.error)]:[2,new gn(r.value)]})})}))},e.prototype.match=function(t,n){return this._promise.then(function(r){return r.match(t,n)})},e.prototype.unwrapOr=function(t){return this._promise.then(function(n){return n.unwrapOr(t)})},e.prototype.then=function(t,n){return this._promise.then(t,n)},e}(),ld=function(e){return new Rv(Promise.resolve(new vn(e)))};/*! *****************************************************************************
68-Copyright (c) Microsoft Corporation.
69-
70-Permission to use, copy, modify, and/or distribute this software for any
71-purpose with or without fee is hereby granted.
72-
73-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
74-REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
75-AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
76-INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
77-LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
78-OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
79-PERFORMANCE OF THIS SOFTWARE.
80-***************************************************************************** */function Ev(e,t,n,r){function o(i){return i instanceof n?i:new n(function(u){u(i)})}return new(n||(n=Promise))(function(i,u){function l(f){try{s(r.next(f))}catch(c){u(c)}}function a(f){try{s(r.throw(f))}catch(c){u(c)}}function s(f){f.done?i(f.value):o(f.value).then(l,a)}s((r=r.apply(e,t||[])).next())})}function Pv(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,u;return u={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function l(s){return function(f){return a([s,f])}}function a(s){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=s[0]&2?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[s[0]&2,i.value]),s[0]){case 0:case 1:i=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,o=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){n.label=s[1];break}if(s[0]===6&&n.label<i[1]){n.label=i[1],i=s;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(s);break}i[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(f){s=[6,f],o=0}finally{r=i=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var pt=function(){},_e=pt(),Kr=Object,xe=function(e){return e===_e},Wt=function(e){return typeof e=="function"},At=function(e,t){return Kr.assign({},e,t)},Js="undefined",Xs=function(){return typeof window!=Js},I_=function(){return typeof document!=Js},$_=function(){return Xs()&&typeof window.requestAnimationFrame!=Js},ri=new WeakMap,k_=0,Po=function(e){var t=typeof e,n=e&&e.constructor,r=n==Date,o,i;if(Kr(e)===e&&!r&&n!=RegExp){if(o=ri.get(e),o)return o;if(o=++k_+"~",ri.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=Po(e[i])+",";ri.set(e,o)}if(n==Kr){o="#";for(var u=Kr.keys(e).sort();!xe(i=u.pop());)xe(e[i])||(o+=i+":"+Po(e[i])+",");ri.set(e,o)}}else o=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return o},Ta=!0,M_=function(){return Ta},xv=Xs(),Zs=I_(),Fa=xv&&window.addEventListener?window.addEventListener.bind(window):pt,A_=Zs?document.addEventListener.bind(document):pt,ba=xv&&window.removeEventListener?window.removeEventListener.bind(window):pt,T_=Zs?document.removeEventListener.bind(document):pt,F_=function(){var e=Zs&&document.visibilityState;return xe(e)||e!=="hidden"},b_=function(e){return A_("visibilitychange",e),Fa("focus",e),function(){T_("visibilitychange",e),ba("focus",e)}},z_=function(e){var t=function(){Ta=!0,e()},n=function(){Ta=!1};return Fa("online",t),Fa("offline",n),function(){ba("online",t),ba("offline",n)}},L_={isOnline:M_,isVisible:F_},D_={initFocus:b_,initReconnect:z_},Ru=!Xs()||"Deno"in window,N_=function(e){return $_()?window.requestAnimationFrame(e):setTimeout(e,1)},Yr=Ru?D.exports.useEffect:D.exports.useLayoutEffect,dl=typeof navigator!="undefined"&&navigator.connection,ad=!Ru&&dl&&(["slow-2g","2g"].includes(dl.effectiveType)||dl.saveData),Ov=function(e){if(Wt(e))try{e=e()}catch{e=""}var t=[].concat(e);e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Po(e):"";var n=e?"$swr$"+e:"";return[e,t,n]},Sn=new WeakMap,Iv=0,$v=1,kv=2,Qr=function(e,t,n,r,o,i,u){u===void 0&&(u=!0);var l=Sn.get(e),a=l[0],s=l[1],f=l[3],c=a[t],d=s[t];if(u&&d)for(var h=0;h<d.length;++h)d[h](n,r,o);return i&&(delete f[t],c&&c[0])?c[0](kv).then(function(){return e.get(t)}):e.get(t)},H_=0,za=function(){return++H_},Mv=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ev(void 0,void 0,void 0,function(){var n,r,o,i,u,l,a,s,f,c,d,h,m,v,S,p,g,y,w,C,R;return Pv(this,function(x){switch(x.label){case 0:if(n=e[0],r=e[1],o=e[2],i=e[3],u=typeof i=="boolean"?{revalidate:i}:i||{},l=xe(u.populateCache)?!0:u.populateCache,a=u.revalidate!==!1,s=u.rollbackOnError!==!1,f=u.optimisticData,c=Ov(r),d=c[0],h=c[2],!d)return[2];if(m=Sn.get(n),v=m[2],e.length<3)return[2,Qr(n,d,n.get(d),_e,_e,a,!0)];if(S=o,g=za(),v[d]=[g,0],y=!xe(f),w=n.get(d),y&&(C=Wt(f)?f(w):f,n.set(d,C),Qr(n,d,C)),Wt(S))try{S=S(n.get(d))}catch(P){p=P}return S&&Wt(S.then)?[4,S.catch(function(P){p=P})]:[3,2];case 1:if(S=x.sent(),g!==v[d][0]){if(p)throw p;return[2,S]}else p&&y&&s&&(l=!0,S=w,n.set(d,w));x.label=2;case 2:return l&&(p||(Wt(l)&&(S=l(S,w)),n.set(d,S)),n.set(h,At(n.get(h),{error:p}))),v[d][1]=za(),[4,Qr(n,d,S,p,_e,a,!!l)];case 3:if(R=x.sent(),p)throw p;return[2,l?R:S]}})})},sd=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},Av=function(e,t){if(!Sn.has(e)){var n=At(D_,t),r={},o=Mv.bind(_e,e),i=pt;if(Sn.set(e,[r,{},{},{},o]),!Ru){var u=n.initFocus(setTimeout.bind(_e,sd.bind(_e,r,Iv))),l=n.initReconnect(setTimeout.bind(_e,sd.bind(_e,r,$v)));i=function(){u&&u(),l&&l(),Sn.delete(e)}}return[e,o,i]}return[e,Sn.get(e)[4]]},j_=function(e,t,n,r,o){var i=n.errorRetryCount,u=o.retryCount,l=~~((Math.random()+.5)*(1<<(u<8?u:8)))*n.errorRetryInterval;!xe(i)&&u>i||setTimeout(r,l,o)},Tv=Av(new Map),Fv=Tv[0],V_=Tv[1],bv=At({onLoadingSlow:pt,onSuccess:pt,onError:pt,onErrorRetry:j_,onDiscarded:pt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:ad?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:ad?5e3:3e3,compare:function(e,t){return Po(e)==Po(t)},isPaused:function(){return!1},cache:Fv,mutate:V_,fallback:{}},L_),zv=function(e,t){var n=At(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,u=t.fallback;r&&i&&(n.use=r.concat(i)),o&&u&&(n.fallback=At(o,u))}return n},La=D.exports.createContext({}),U_=function(e){var t=e.value,n=zv(D.exports.useContext(La),t),r=t&&t.provider,o=D.exports.useState(function(){return r?Av(r(n.cache||Fv),t):_e})[0];return o&&(n.cache=o[0],n.mutate=o[1]),Yr(function(){return o?o[2]:_e},[]),D.exports.createElement(La.Provider,At(e,{value:n}))},G_=function(e,t){var n=D.exports.useState({})[1],r=D.exports.useRef(e),o=D.exports.useRef({data:!1,error:!1,isValidating:!1}),i=D.exports.useCallback(function(u){var l=!1,a=r.current;for(var s in u){var f=s;a[f]!==u[f]&&(a[f]=u[f],o.current[f]&&(l=!0))}l&&!t.current&&n({})},[]);return Yr(function(){r.current=e}),[r,o.current,i]},W_=function(e){return Wt(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}]},B_=function(){return At(bv,D.exports.useContext(La))},q_=function(e){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var o=B_(),i=W_(n),u=i[0],l=i[1],a=i[2],s=zv(o,a),f=e,c=s.use;if(c)for(var d=c.length;d-- >0;)f=c[d](f);return f(u,l||s.fetcher,s)}},fd=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var o=r.indexOf(n);o>=0&&(r[o]=r[r.length-1],r.pop())}},pl={dedupe:!0},K_=function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,u=n.suspense,l=n.revalidateOnMount,a=n.refreshInterval,s=n.refreshWhenHidden,f=n.refreshWhenOffline,c=Sn.get(r),d=c[0],h=c[1],m=c[2],v=c[3],S=Ov(e),p=S[0],g=S[1],y=S[2],w=D.exports.useRef(!1),C=D.exports.useRef(!1),R=D.exports.useRef(p),x=D.exports.useRef(t),P=D.exports.useRef(n),$=function(){return P.current},M=function(){return $().isVisible()&&$().isOnline()},W=function(G){return r.set(y,At(r.get(y),G))},J=r.get(p),j=xe(i)?n.fallback[p]:i,L=xe(J)?j:J,F=r.get(y)||{},U=F.error,N=!w.current,I=function(){return N&&!xe(l)?l:$().isPaused()?!1:u?xe(L)?!1:n.revalidateIfStale:xe(L)||n.revalidateIfStale},z=function(){return!p||!t?!1:F.isValidating?!0:N&&I()},_=z(),E=G_({data:L,error:U,isValidating:_},C),O=E[0],A=E[1],T=E[2],k=D.exports.useCallback(function(G){return Ev(void 0,void 0,void 0,function(){var Z,q,ae,Be,at,st,Ee,zt,ft,$u,wr,Tn,ku;return Pv(this,function(Sr){switch(Sr.label){case 0:if(Z=x.current,!p||!Z||C.current||$().isPaused())return[2,!1];Be=!0,at=G||{},st=!v[p]||!at.dedupe,Ee=function(){return!C.current&&p===R.current&&w.current},zt=function(){var af=v[p];af&&af[1]===ae&&delete v[p]},ft={isValidating:!1},$u=function(){W({isValidating:!1}),Ee()&&T(ft)},W({isValidating:!0}),T({isValidating:!0}),Sr.label=1;case 1:return Sr.trys.push([1,3,,4]),st&&(Qr(r,p,O.current.data,O.current.error,!0),n.loadingTimeout&&!r.get(p)&&setTimeout(function(){Be&&Ee()&&$().onLoadingSlow(p,n)},n.loadingTimeout),v[p]=[Z.apply(void 0,g),za()]),ku=v[p],q=ku[0],ae=ku[1],[4,q];case 2:return q=Sr.sent(),st&&setTimeout(zt,n.dedupingInterval),!v[p]||v[p][1]!==ae?(st&&Ee()&&$().onDiscarded(p),[2,!1]):(W({error:_e}),ft.error=_e,wr=m[p],!xe(wr)&&(ae<=wr[0]||ae<=wr[1]||wr[1]===0)?($u(),st&&Ee()&&$().onDiscarded(p),[2,!1]):(o(O.current.data,q)?ft.data=O.current.data:ft.data=q,o(r.get(p),q)||r.set(p,q),st&&Ee()&&$().onSuccess(q,p,n),[3,4]));case 3:return Tn=Sr.sent(),zt(),$().isPaused()||(W({error:Tn}),ft.error=Tn,st&&Ee()&&($().onError(Tn,p,n),(typeof n.shouldRetryOnError=="boolean"&&n.shouldRetryOnError||Wt(n.shouldRetryOnError)&&n.shouldRetryOnError(Tn))&&M()&&$().onErrorRetry(Tn,p,n,k,{retryCount:(at.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return Be=!1,$u(),Ee()&&st&&Qr(r,p,ft.data,ft.error,!1),[2,!0]}})})},[p]),V=D.exports.useCallback(Mv.bind(_e,r,function(){return R.current}),[]);if(Yr(function(){x.current=t,P.current=n}),Yr(function(){if(!!p){var G=p!==R.current,Z=k.bind(_e,pl),q=function(Ee,zt,ft){T(At({error:zt,isValidating:ft},o(O.current.data,Ee)?_e:{data:Ee}))},ae=0,Be=function(Ee){if(Ee==Iv){var zt=Date.now();$().revalidateOnFocus&&zt>ae&&M()&&(ae=zt+$().focusThrottleInterval,Z())}else if(Ee==$v)$().revalidateOnReconnect&&M()&&Z();else if(Ee==kv)return k()},at=fd(p,h,q),st=fd(p,d,Be);return C.current=!1,R.current=p,w.current=!0,G&&T({data:L,error:U,isValidating:_}),I()&&(xe(L)||Ru?Z():N_(Z)),function(){C.current=!0,at(),st()}}},[p,k]),Yr(function(){var G;function Z(){var ae=Wt(a)?a(L):a;ae&&G!==-1&&(G=setTimeout(q,ae))}function q(){!O.current.error&&(s||$().isVisible())&&(f||$().isOnline())?k(pl).then(Z):Z()}return Z(),function(){G&&(clearTimeout(G),G=-1)}},[a,s,f,k]),D.exports.useDebugValue(L),u&&xe(L)&&p)throw x.current=t,P.current=n,C.current=!1,xe(U)?k(pl):U;return{mutate:V,get data(){return A.data=!0,L},get error(){return A.error=!0,U},get isValidating(){return A.isValidating=!0,_}}};Kr.defineProperty(U_,"default",{value:bv});var SP=q_(K_),Lv={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(a,s,f){this.fn=a,this.context=s,this.once=f||!1}function i(a,s,f,c,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new o(f,c||a,d),m=n?n+s:s;return a._events[m]?a._events[m].fn?a._events[m]=[a._events[m],h]:a._events[m].push(h):(a._events[m]=h,a._eventsCount++),a}function u(a,s){--a._eventsCount===0?a._events=new r:delete a._events[s]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var s=[],f,c;if(this._eventsCount===0)return s;for(c in f=this._events)t.call(f,c)&&s.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?s.concat(Object.getOwnPropertySymbols(f)):s},l.prototype.listeners=function(s){var f=n?n+s:s,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,h=c.length,m=new Array(h);d<h;d++)m[d]=c[d].fn;return m},l.prototype.listenerCount=function(s){var f=n?n+s:s,c=this._events[f];return c?c.fn?1:c.length:0},l.prototype.emit=function(s,f,c,d,h,m){var v=n?n+s:s;if(!this._events[v])return!1;var S=this._events[v],p=arguments.length,g,y;if(S.fn){switch(S.once&&this.removeListener(s,S.fn,void 0,!0),p){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,f),!0;case 3:return S.fn.call(S.context,f,c),!0;case 4:return S.fn.call(S.context,f,c,d),!0;case 5:return S.fn.call(S.context,f,c,d,h),!0;case 6:return S.fn.call(S.context,f,c,d,h,m),!0}for(y=1,g=new Array(p-1);y<p;y++)g[y-1]=arguments[y];S.fn.apply(S.context,g)}else{var w=S.length,C;for(y=0;y<w;y++)switch(S[y].once&&this.removeListener(s,S[y].fn,void 0,!0),p){case 1:S[y].fn.call(S[y].context);break;case 2:S[y].fn.call(S[y].context,f);break;case 3:S[y].fn.call(S[y].context,f,c);break;case 4:S[y].fn.call(S[y].context,f,c,d);break;default:if(!g)for(C=1,g=new Array(p-1);C<p;C++)g[C-1]=arguments[C];S[y].fn.apply(S[y].context,g)}}return!0},l.prototype.on=function(s,f,c){return i(this,s,f,c,!1)},l.prototype.once=function(s,f,c){return i(this,s,f,c,!0)},l.prototype.removeListener=function(s,f,c,d){var h=n?n+s:s;if(!this._events[h])return this;if(!f)return u(this,h),this;var m=this._events[h];if(m.fn)m.fn===f&&(!d||m.once)&&(!c||m.context===c)&&u(this,h);else{for(var v=0,S=[],p=m.length;v<p;v++)(m[v].fn!==f||d&&!m[v].once||c&&m[v].context!==c)&&S.push(m[v]);S.length?this._events[h]=S.length===1?S[0]:S:u(this,h)}return this},l.prototype.removeAllListeners=function(s){var f;return s?(f=n?n+s:s,this._events[f]&&u(this,f)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(Lv);var CP=Lv.exports,ef={exports:{}},Dv=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i<o.length;i++)o[i]=arguments[i];return t.apply(n,o)}},Y_=Dv,sn=Object.prototype.toString;function tf(e){return Array.isArray(e)}function Da(e){return typeof e=="undefined"}function Q_(e){return e!==null&&!Da(e)&&e.constructor!==null&&!Da(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function Nv(e){return sn.call(e)==="[object ArrayBuffer]"}function J_(e){return sn.call(e)==="[object FormData]"}function X_(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Nv(e.buffer),t}function Z_(e){return typeof e=="string"}function eR(e){return typeof e=="number"}function Hv(e){return e!==null&&typeof e=="object"}function Ei(e){if(sn.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function tR(e){return sn.call(e)==="[object Date]"}function nR(e){return sn.call(e)==="[object File]"}function rR(e){return sn.call(e)==="[object Blob]"}function jv(e){return sn.call(e)==="[object Function]"}function oR(e){return Hv(e)&&jv(e.pipe)}function iR(e){return sn.call(e)==="[object URLSearchParams]"}function uR(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function lR(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function nf(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),tf(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function Na(){var e={};function t(o,i){Ei(e[i])&&Ei(o)?e[i]=Na(e[i],o):Ei(o)?e[i]=Na({},o):tf(o)?e[i]=o.slice():e[i]=o}for(var n=0,r=arguments.length;n<r;n++)nf(arguments[n],t);return e}function aR(e,t,n){return nf(t,function(o,i){n&&typeof o=="function"?e[i]=Y_(o,n):e[i]=o}),e}function sR(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var ze={isArray:tf,isArrayBuffer:Nv,isBuffer:Q_,isFormData:J_,isArrayBufferView:X_,isString:Z_,isNumber:eR,isObject:Hv,isPlainObject:Ei,isUndefined:Da,isDate:tR,isFile:nR,isBlob:rR,isFunction:jv,isStream:oR,isURLSearchParams:iR,isStandardBrowserEnv:lR,forEach:nf,merge:Na,extend:aR,trim:uR,stripBOM:sR},bn=ze;function cd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Vv=function(t,n,r){if(!n)return t;var o;if(r)o=r(n);else if(bn.isURLSearchParams(n))o=n.toString();else{var i=[];bn.forEach(n,function(a,s){a===null||typeof a=="undefined"||(bn.isArray(a)?s=s+"[]":a=[a],bn.forEach(a,function(c){bn.isDate(c)?c=c.toISOString():bn.isObject(c)&&(c=JSON.stringify(c)),i.push(cd(s)+"="+cd(c))}))}),o=i.join("&")}if(o){var u=t.indexOf("#");u!==-1&&(t=t.slice(0,u)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},fR=ze;function Eu(){this.handlers=[]}Eu.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};Eu.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Eu.prototype.forEach=function(t){fR.forEach(this.handlers,function(r){r!==null&&t(r)})};var cR=Eu,dR=ze,pR=function(t,n){dR.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i])})},Uv=function(t,n,r,o,i){return t.config=n,r&&(t.code=r),t.request=o,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},Gv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gR=Uv,Wv=function(t,n,r,o,i){var u=new Error(t);return gR(u,n,r,o,i)},vR=Wv,hR=function(t,n,r){var o=r.config.validateStatus;!r.status||!o||o(r.status)?t(r):n(vR("Request failed with status code "+r.status,r.config,null,r.request,r))},oi=ze,mR=oi.isStandardBrowserEnv()?function(){return{write:function(n,r,o,i,u,l){var a=[];a.push(n+"="+encodeURIComponent(r)),oi.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),oi.isString(i)&&a.push("path="+i),oi.isString(u)&&a.push("domain="+u),l===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){var 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(){}}}(),yR=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},wR=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},SR=yR,CR=wR,_R=function(t,n){return t&&!SR(n)?CR(t,n):n},gl=ze,RR=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],ER=function(t){var n={},r,o,i;return t&&gl.forEach(t.split(`
81-`),function(l){if(i=l.indexOf(":"),r=gl.trim(l.substr(0,i)).toLowerCase(),o=gl.trim(l.substr(i+1)),r){if(n[r]&&RR.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([o]):n[r]=n[r]?n[r]+", "+o:o}}),n},dd=ze,PR=dd.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function o(i){var u=i;return t&&(n.setAttribute("href",u),u=n.href),n.setAttribute("href",u),{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(u){var l=dd.isString(u)?o(u):u;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function rf(e){this.message=e}rf.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};rf.prototype.__CANCEL__=!0;var Pu=rf,ii=ze,xR=hR,OR=mR,IR=Vv,$R=_R,kR=ER,MR=PR,vl=Wv,AR=Gv,TR=Pu,pd=function(t){return new Promise(function(r,o){var i=t.data,u=t.headers,l=t.responseType,a;function s(){t.cancelToken&&t.cancelToken.unsubscribe(a),t.signal&&t.signal.removeEventListener("abort",a)}ii.isFormData(i)&&delete u["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"",d=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";u.Authorization="Basic "+btoa(c+":"+d)}var h=$R(t.baseURL,t.url);f.open(t.method.toUpperCase(),IR(h,t.params,t.paramsSerializer),!0),f.timeout=t.timeout;function m(){if(!!f){var S="getAllResponseHeaders"in f?kR(f.getAllResponseHeaders()):null,p=!l||l==="text"||l==="json"?f.responseText:f.response,g={data:p,status:f.status,statusText:f.statusText,headers:S,config:t,request:f};xR(function(w){r(w),s()},function(w){o(w),s()},g),f=null}}if("onloadend"in f?f.onloadend=m:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(m)},f.onabort=function(){!f||(o(vl("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){o(vl("Network Error",t,null,f)),f=null},f.ontimeout=function(){var p=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",g=t.transitional||AR;t.timeoutErrorMessage&&(p=t.timeoutErrorMessage),o(vl(p,t,g.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},ii.isStandardBrowserEnv()){var v=(t.withCredentials||MR(h))&&t.xsrfCookieName?OR.read(t.xsrfCookieName):void 0;v&&(u[t.xsrfHeaderName]=v)}"setRequestHeader"in f&&ii.forEach(u,function(p,g){typeof i=="undefined"&&g.toLowerCase()==="content-type"?delete u[g]:f.setRequestHeader(g,p)}),ii.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),l&&l!=="json"&&(f.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&f.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(a=function(S){!f||(o(!S||S&&S.type?new TR("canceled"):S),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(a),t.signal&&(t.signal.aborted?a():t.signal.addEventListener("abort",a))),i||(i=null),f.send(i)})},he=ze,gd=pR,FR=Uv,bR=Gv,zR={"Content-Type":"application/x-www-form-urlencoded"};function vd(e,t){!he.isUndefined(e)&&he.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function LR(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=pd),e}function DR(e,t,n){if(he.isString(e))try{return(t||JSON.parse)(e),he.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var xu={transitional:bR,adapter:LR(),transformRequest:[function(t,n){return gd(n,"Accept"),gd(n,"Content-Type"),he.isFormData(t)||he.isArrayBuffer(t)||he.isBuffer(t)||he.isStream(t)||he.isFile(t)||he.isBlob(t)?t:he.isArrayBufferView(t)?t.buffer:he.isURLSearchParams(t)?(vd(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):he.isObject(t)||n&&n["Content-Type"]==="application/json"?(vd(n,"application/json"),DR(t)):t}],transformResponse:[function(t){var n=this.transitional||xu.transitional,r=n&&n.silentJSONParsing,o=n&&n.forcedJSONParsing,i=!r&&this.responseType==="json";if(i||o&&he.isString(t)&&t.length)try{return JSON.parse(t)}catch(u){if(i)throw u.name==="SyntaxError"?FR(u,this,"E_JSON_PARSE"):u}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};he.forEach(["delete","get","head"],function(t){xu.headers[t]={}});he.forEach(["post","put","patch"],function(t){xu.headers[t]=he.merge(zR)});var of=xu,NR=ze,HR=of,jR=function(t,n,r){var o=this||HR;return NR.forEach(r,function(u){t=u.call(o,t,n)}),t},Bv=function(t){return!!(t&&t.__CANCEL__)},hd=ze,hl=jR,VR=Bv,UR=of,GR=Pu;function ml(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new GR("canceled")}var WR=function(t){ml(t),t.headers=t.headers||{},t.data=hl.call(t,t.data,t.headers,t.transformRequest),t.headers=hd.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),hd.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var n=t.adapter||UR.adapter;return n(t).then(function(o){return ml(t),o.data=hl.call(t,o.data,o.headers,t.transformResponse),o},function(o){return VR(o)||(ml(t),o&&o.response&&(o.response.data=hl.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},Le=ze,qv=function(t,n){n=n||{};var r={};function o(f,c){return Le.isPlainObject(f)&&Le.isPlainObject(c)?Le.merge(f,c):Le.isPlainObject(c)?Le.merge({},c):Le.isArray(c)?c.slice():c}function i(f){if(Le.isUndefined(n[f])){if(!Le.isUndefined(t[f]))return o(void 0,t[f])}else return o(t[f],n[f])}function u(f){if(!Le.isUndefined(n[f]))return o(void 0,n[f])}function l(f){if(Le.isUndefined(n[f])){if(!Le.isUndefined(t[f]))return o(void 0,t[f])}else return o(void 0,n[f])}function a(f){if(f in n)return o(t[f],n[f]);if(f in t)return o(void 0,t[f])}var s={url:u,method:u,data:u,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:a};return Le.forEach(Object.keys(t).concat(Object.keys(n)),function(c){var d=s[c]||i,h=d(c);Le.isUndefined(h)&&d!==a||(r[c]=h)}),r},Kv={version:"0.26.1"},BR=Kv.version,uf={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){uf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var md={};uf.transitional=function(t,n,r){function o(i,u){return"[Axios v"+BR+"] Transitional option '"+i+"'"+u+(r?". "+r:"")}return function(i,u,l){if(t===!1)throw new Error(o(u," has been removed"+(n?" in "+n:"")));return n&&!md[u]&&(md[u]=!0,console.warn(o(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,u,l):!0}};function qR(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],u=t[i];if(u){var l=e[i],a=l===void 0||u(l,i,e);if(a!==!0)throw new TypeError("option "+i+" must be "+a);continue}if(n!==!0)throw Error("Unknown option "+i)}}var KR={assertOptions:qR,validators:uf},Yv=ze,YR=Vv,yd=cR,wd=WR,Ou=qv,Qv=KR,zn=Qv.validators;function To(e){this.defaults=e,this.interceptors={request:new yd,response:new yd}}To.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ou(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&Qv.assertOptions(r,{silentJSONParsing:zn.transitional(zn.boolean),forcedJSONParsing:zn.transitional(zn.boolean),clarifyTimeoutError:zn.transitional(zn.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(i=i&&h.synchronous,o.unshift(h.fulfilled,h.rejected))});var u=[];this.interceptors.response.forEach(function(h){u.push(h.fulfilled,h.rejected)});var l;if(!i){var a=[wd,void 0];for(Array.prototype.unshift.apply(a,o),a=a.concat(u),l=Promise.resolve(n);a.length;)l=l.then(a.shift(),a.shift());return l}for(var s=n;o.length;){var f=o.shift(),c=o.shift();try{s=f(s)}catch(d){c(d);break}}try{l=wd(s)}catch(d){return Promise.reject(d)}for(;u.length;)l=l.then(u.shift(),u.shift());return l};To.prototype.getUri=function(t){return t=Ou(this.defaults,t),YR(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Yv.forEach(["delete","get","head","options"],function(t){To.prototype[t]=function(n,r){return this.request(Ou(r||{},{method:t,url:n,data:(r||{}).data}))}});Yv.forEach(["post","put","patch"],function(t){To.prototype[t]=function(n,r,o){return this.request(Ou(o||{},{method:t,url:n,data:r}))}});var QR=To,JR=Pu;function dr(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(o){t=o});var n=this;this.promise.then(function(r){if(!!n._listeners){var o,i=n._listeners.length;for(o=0;o<i;o++)n._listeners[o](r);n._listeners=null}}),this.promise.then=function(r){var o,i=new Promise(function(u){n.subscribe(u),o=u}).then(r);return i.cancel=function(){n.unsubscribe(o)},i},e(function(o){n.reason||(n.reason=new JR(o),t(n.reason))})}dr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};dr.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};dr.prototype.unsubscribe=function(t){if(!!this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}};dr.source=function(){var t,n=new dr(function(o){t=o});return{token:n,cancel:t}};var XR=dr,ZR=function(t){return function(r){return t.apply(null,r)}},eE=ze,tE=function(t){return eE.isObject(t)&&t.isAxiosError===!0},Sd=ze,nE=Dv,Pi=QR,rE=qv,oE=of;function Jv(e){var t=new Pi(e),n=nE(Pi.prototype.request,t);return Sd.extend(n,Pi.prototype,t),Sd.extend(n,t),n.create=function(o){return Jv(rE(e,o))},n}var Ct=Jv(oE);Ct.Axios=Pi;Ct.Cancel=Pu;Ct.CancelToken=XR;Ct.isCancel=Bv;Ct.VERSION=Kv.version;Ct.all=function(t){return Promise.all(t)};Ct.spread=ZR;Ct.isAxiosError=tE;ef.exports=Ct;ef.exports.default=Ct;var _P=ef.exports;function RP(e){var t=D.exports.useState(function(){return Ro(typeof e=="function"?e():e,!0)}),n=t[1];return[t[0],D.exports.useCallback(function(r){n(typeof r=="function"?yv(r):Ro(r))},[])]}function iE(){var e=D.exports.useRef(!1),t=D.exports.useCallback(function(){return e.current},[]);return D.exports.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),t}function uE(e){var t=D.exports.useState(e),n=t[0],r=t[1],o=iE();return[n,D.exports.useCallback(function(i){o()&&r(i)},[])]}function EP(e){var t=D.exports.useRef(e);return t.current=e,D.exports.useMemo(function(){return Object.freeze({get current(){return t.current}})},[])}var lE=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},aE=[0],sE="0px",yl=new Map,fE=function(e){var t,n=(t=e.root)!==null&&t!==void 0?t:document,r=yl.get(n);r||(r=new Map,yl.set(n,r));var o=JSON.stringify([e.rootMargin,e.threshold]),i=r.get(o);if(!i){var u=new Map,l=new IntersectionObserver(function(a){return a.forEach(function(s){var f;return(f=u.get(s.target))===null||f===void 0?void 0:f.forEach(function(c){return setTimeout(function(){return c(s)},0)})})},e);i={observer:l,observe:function(a,s){var f=u.get(a);f||(f=new Set,u.set(a,f),l.observe(a)),f.add(s)},unobserve:function(a,s){var f=u.get(a);f&&(f.delete(s),f.size||(u.delete(a),l.unobserve(a),u.size||(l.disconnect(),r.delete(o),r.size||yl.delete(n))))}},r.set(o,i)}return i};function PP(e,t){var n=t===void 0?{}:t,r=n.threshold,o=r===void 0?aE:r,i=n.root,u=n.rootMargin,l=u===void 0?sE:u,a=uE(),s=a[0],f=a[1];return D.exports.useEffect(function(){var c=e&&"current"in e?e.current:e;if(!!c){var d=!0,h=fE({root:i&&"current"in i?i.current:i,rootMargin:l,threshold:o}),m=function(v){d&&f(v)};return h.observe(c,m),function(){d=!1,h.unobserve(c,m)}}},lE([e,i,l],o,!0)),s}/**
82- * table-core
83- *
84- * Copyright (c) TanStack
85- *
86- * This source code is licensed under the MIT license found in the
87- * LICENSE.md file in the root directory of this source tree.
88- *
89- * @license MIT
90- */function Q(){return Q=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(this,arguments)}function Xv(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function cE(e,t){if(!!e){if(typeof e=="string")return Cd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cd(e,t)}}function Cd(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fo(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=cE(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
91-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dE(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zv(e){var t=dE(e,"string");return typeof t=="symbol"?t:String(t)}function de(e,t){return typeof e=="function"?e(t):e}function tt(e,t){return function(n){t.setState(function(r){var o;return Q({},r,(o={},o[e]=de(n,r[e]),o))})}}function xo(e){return e instanceof Function}function pE(e,t){var n=[],r=function o(i){i.forEach(function(u){n.push(u);var l=t(u);l!=null&&l.length&&o(l)})};return r(e),n}var ve=function(t,n){return xo(n)?n(t):Q({},t,n!=null?n:{})};function B(e,t,n){var r=[],o;return function(){var i;n.key&&n.debug&&(i=Date.now());var u=e(),l=u.length!==r.length||u.some(function(m,v){return r[v]!==m});if(l){var a=o,s;if(n.key&&n.debug&&(s=Date.now()),o=t.apply(void 0,u),r=u,n==null||n.onChange==null||n.onChange(o,a),n.key&&n.debug&&n!=null&&n.debug()){var f=Math.round((Date.now()-i)*100)/100,c=Math.round((Date.now()-s)*100)/100,d=c/16,h=function(v,S){for(v=String(v);v.length<S;)v=" "+v;return v};console.info("%c\u23F1 "+h(c,5)+" /"+h(f,5)+" ms",`
92- font-size: .6rem;
93- font-weight: bold;
94- color: hsl(`+Math.max(0,Math.min(120-120*d,120))+"deg 100% 31%);",n==null?void 0:n.key,Q({length:r.length+" -> "+u.length},u.map(function(m,v){return r[v]!==u[v]?[v,r[v],u[v]]:!1}).filter(Boolean).reduce(function(m,v){var S,p=v[0],g=v[1];return Q({},m,(S={},S[p]=g,S))},{}),{parent}))}a=void 0}return o}}var ui={width:150,minWidth:20,maxWidth:Number.MAX_SAFE_INTEGER},eh={getDefaultColumn:function(){return ui},getInitialState:function(){return{columnSizing:{},columnSizingInfo:{startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}}},getDefaultOptions:function(t){return{columnResizeMode:"onEnd",onColumnSizingChange:tt("columnSizing",t),onColumnSizingInfoChange:tt("columnSizingInfo",t)}},getInstance:function(t){return{getColumnWidth:function(r){var o,i,u,l=t.getColumn(r);if(!l)throw new Error;var a=t.getState().columnSizing[l.id];return Math.min(Math.max((o=l.minWidth)!=null?o:ui.minWidth,(i=a!=null?a:l.width)!=null?i:ui.width),(u=l.maxWidth)!=null?u:ui.maxWidth)},setColumnSizing:function(r){return t.options.onColumnSizingChange==null?void 0:t.options.onColumnSizingChange(r,de(r,t.getState().columnSizing))},setColumnSizingInfo:function(r){return t.options.onColumnSizingInfoChange==null?void 0:t.options.onColumnSizingInfoChange(r,de(r,t.getState().columnSizingInfo))},resetColumnSizing:function(){var r;t.setColumnSizing((r=t.initialState.columnSizing)!=null?r:{})},resetHeaderSizeInfo:function(){var r;t.setColumnSizingInfo((r=t.initialState.columnSizingInfo)!=null?r:{})},resetColumnSize:function(r){t.setColumnSizing(function(o){o[r];var i=Xv(o,[r].map(Zv));return i})},resetHeaderSize:function(r){var o=t.getHeader(r);return t.resetColumnSize(o.column.id)},getHeaderCanResize:function(r){var o=t.getHeader(r);if(!o)throw new Error;return t.getColumnCanResize(o.column.id)},getColumnCanResize:function(r){var o,i,u,l=t.getColumn(r);if(!l)throw new Error;return(o=(i=(u=l.enableResizing)!=null?u:t.options.enableColumnResizing)!=null?i:l.defaultCanResize)!=null?o:!0},getColumnIsResizing:function(r){var o=t.getColumn(r);if(!o)throw new Error;return t.getState().columnSizingInfo.isResizingColumn===r},getHeaderIsResizing:function(r){var o=t.getHeader(r);if(!o)throw new Error;return t.getColumnIsResizing(o.column.id)},getHeaderResizerProps:function(r,o){var i=t.getHeader(r),u=t.getColumn(i.column.id),l=u.getCanResize(),a=function(c){if(!(wl(c)&&c.touches&&c.touches.length>1)){var d=r?t.getHeader(r):void 0,h=d?d.getWidth():u.getWidth(),m=d?d.getLeafHeaders().map(function(R){return[R.column.id,R.getWidth()]}):[[u.id,u.getWidth()]],v=wl(c)?Math.round(c.touches[0].clientX):c.clientX,S=function(x,P){if(typeof P=="number"){var $={};t.setColumnSizingInfo(function(M){var W,J,j=P-((W=M==null?void 0:M.startOffset)!=null?W:0),L=Math.max(j/((J=M==null?void 0:M.startSize)!=null?J:0),-.999999);return M.columnSizingStart.forEach(function(F){var U=F[0],N=F[1];$[U]=Math.round(Math.max(N+N*L,0)*100)/100}),Q({},M,{deltaOffset:j,deltaPercentage:L})}),(t.options.columnResizeMode==="onChange"||x==="end")&&t.setColumnSizing(function(M){return Q({},M,$)})}},p=function(x){return S("move",x)},g=function(x){S("end",x),t.setColumnSizingInfo(function(P){return Q({},P,{isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]})})},y={moveHandler:function(x){return p(x.clientX)},upHandler:function(x){document.removeEventListener("mousemove",y.moveHandler),document.removeEventListener("mouseup",y.upHandler),g(x.clientX)}},w={moveHandler:function(x){return x.cancelable&&(x.preventDefault(),x.stopPropagation()),p(x.touches[0].clientX),!1},upHandler:function(x){document.removeEventListener("touchmove",w.moveHandler),document.removeEventListener("touchend",w.upHandler),x.cancelable&&(x.preventDefault(),x.stopPropagation()),g(x.touches[0].clientX)}},C=gE()?{passive:!1}:!1;wl(c)?(document.addEventListener("touchmove",w.moveHandler,C),document.addEventListener("touchend",w.upHandler,C)):(document.addEventListener("mousemove",y.moveHandler,C),document.addEventListener("mouseup",y.upHandler,C)),t.setColumnSizingInfo(function(R){return Q({},R,{startOffset:v,startSize:h,deltaOffset:0,deltaPercentage:0,columnSizingStart:m,isResizingColumn:u.id})})}},s=l?{title:"Toggle Grouping",draggable:!1,role:"separator",onMouseDown:function(c){c.persist==null||c.persist(),a(c)},onTouchStart:function(c){c.persist==null||c.persist(),a(c)}}:{};return ve(s,o)}}},createColumn:function(t,n){return{getIsResizing:function(){return n.getColumnIsResizing(t.id)},getCanResize:function(){return n.getColumnCanResize(t.id)},resetSize:function(){return n.resetColumnSize(t.id)}}},createHeader:function(t,n){return{getIsResizing:function(){return n.getColumnIsResizing(t.column.id)},getCanResize:function(){return n.getColumnCanResize(t.column.id)},resetSize:function(){return n.resetColumnSize(t.column.id)},getResizerProps:function(o){return n.getHeaderResizerProps(t.id,o)}}}},li=null;function gE(){if(typeof li=="boolean")return li;var e=!1;try{var t={get passive(){return e=!0,!1}},n=function(){};window.addEventListener("test",n,t),window.removeEventListener("test",n)}catch{e=!1}return li=e,li}function wl(e){return e.type==="touchstart"}var vE={getInitialState:function(){return{expanded:{}}},getDefaultOptions:function(t){return{onExpandedChange:tt("expanded",t),autoResetExpanded:!0,expandSubRows:!0,paginateExpandedRows:!0}},getInstance:function(t){var n=!1;return{_notifyExpandedReset:function(){if(t._notifyPageIndexReset(),!n){n=!0;return}t.options.autoResetAll!==!1&&(t.options.autoResetAll===!0||t.options.autoResetExpanded)&&t.resetExpanded()},setExpanded:function(o){return t.options.onExpandedChange==null?void 0:t.options.onExpandedChange(o,de(o,t.getState().expanded))},toggleRowExpanded:function(o,i){!o||t.setExpanded(function(u){var l,a=u===!0?!0:!!(u!=null&&u[o]),s={};if(u===!0?Object.keys(t.getRowModel().rowsById).forEach(function(h){s[h]=!0}):s=u,i=(l=i)!=null?l:!a,!a&&i){var f;return Q({},s,(f={},f[o]=!0,f))}if(a&&!i){var c=s;c[o];var d=Xv(c,[o].map(Zv));return d}return u})},toggleAllRowsExpanded:function(o){(o!=null?o:!t.getIsAllRowsExpanded())?t.setExpanded(!0):t.setExpanded({})},resetExpanded:function(){var o,i;t.setExpanded((o=(i=t.initialState)==null?void 0:i.expanded)!=null?o:{})},getIsRowExpanded:function(o){var i,u=t.getPreExpandedRowModel().rowsById[o];if(!u)throw new Error;var l=t.getState().expanded;return!!((i=t.options.getIsRowExpanded==null?void 0:t.options.getIsRowExpanded(u))!=null?i:l===!0||(l==null?void 0:l[o]))},getRowCanExpand:function(o){var i,u,l,a,s=t.getRow(o);if(!s)throw new Error;return(i=(u=(l=t.options.getRowCanExpand==null?void 0:t.options.getRowCanExpand(s))!=null?l:t.options.enableExpanded)!=null?u:t.options.defaultCanExpand)!=null?i:!!((a=s.subRows)!=null&&a.length)},getCanSomeRowsExpand:function(){return Object.keys(t.getRowModel().rowsById).some(function(o){return t.getRowCanExpand(o)})},getToggleExpandedProps:function(o,i){var u=t.getRow(o);if(!!u){var l=t.getRowCanExpand(o),a={title:l?"Toggle Expanded":void 0,onClick:l?function(s){s.persist==null||s.persist(),t.toggleRowExpanded(o)}:void 0};return ve(a,i)}},getToggleAllRowsExpandedProps:function(o){var i={title:"Toggle All Expanded",onClick:function(l){l.persist==null||l.persist(),t.toggleAllRowsExpanded()}};return ve(i,o)},getIsSomeRowsExpanded:function(){var o=t.getState().expanded;return o===!0||Object.values(o).some(Boolean)},getIsAllRowsExpanded:function(){var o=t.getState().expanded;return o===!0?!0:!Object.keys(t.getRowModel().rowsById).some(function(i){return!t.getIsRowExpanded(i)})},getExpandedDepth:function(){var o=0,i=t.getState().expanded===!0?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded);return i.forEach(function(u){var l=u.split(".");o=Math.max(o,l.length)}),o},getPreExpandedRowModel:function(){return t.getGroupedRowModel()},getExpandedRowModel:function(){return!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t._getExpandedRowModel?t._getExpandedRowModel():t.getPreExpandedRowModel()}}},createRow:function(t,n){return{toggleExpanded:function(o){return void n.toggleRowExpanded(t.id,o)},getIsExpanded:function(){return n.getIsRowExpanded(t.id)},getCanExpand:function(){return t.subRows&&!!t.subRows.length},getToggleExpandedProps:function(o){return n.getToggleExpandedProps(t.id,o)}}}},Lt={includesString:th,includesStringSensitive:nh,equalsString:rh,equalsStringSensitive:oh,arrIncludes:ih,arrIncludesAll:uh,equals:lh,weakEquals:ah,betweenNumberRange:sh};function th(e,t,n){var r=String(n).toLowerCase();return e=e.filter(function(o){return t.some(function(i){return String(o.values[i]).toLowerCase().includes(r)})}),e}th.autoRemove=function(e){return ut(e)};function nh(e,t,n){var r=String(n);return e=e.filter(function(o){return t.some(function(i){return String(o.values[i]).includes(r)})}),e}nh.autoRemove=function(e){return ut(e)};function rh(e,t,n){var r=String(n).toLowerCase();return e.filter(function(o){return t.some(function(i){var u=o.values[i];return u!==void 0?String(u).toLowerCase()===r:!0})})}rh.autoRemove=function(e){return ut(e)};function oh(e,t,n){var r=String(n);return e.filter(function(o){return t.some(function(i){var u=o.values[i];return u!==void 0?String(u)===r:!0})})}oh.autoRemove=function(e){return ut(e)};function ih(e,t,n){return e.filter(function(r){return t.some(function(o){var i=r.values[o];return i.includes(n)})})}ih.autoRemove=function(e){return ut(e)||!(e!=null&&e.length)};function uh(e,t,n){return e.filter(function(r){return t.some(function(o){var i=r.values[o];return i&&i.length&&n.every(function(u){return i.includes(u)})})})}uh.autoRemove=function(e){return ut(e)||!(e!=null&&e.length)};function lh(e,t,n){return e.filter(function(r){return t.some(function(o){var i=r.values[o];return i===n})})}lh.autoRemove=function(e){return ut(e)};function ah(e,t,n){return e.filter(function(r){return t.some(function(o){var i=r.values[o];return i==n})})}ah.autoRemove=function(e){return ut(e)};function sh(e,t,n){var r=n||[],o=r[0],i=r[1],u=typeof o!="number"?parseFloat(o):o,l=typeof i!="number"?parseFloat(i):i,a=o===null||Number.isNaN(u)?-1/0:u,s=i===null||Number.isNaN(l)?1/0:l;if(a>s){var f=a;a=s,s=f}return e.filter(function(c){return t.some(function(d){var h=c.values[d];return h>=a&&h<=s})})}sh.autoRemove=function(e){return ut(e)||ut(e[0])&&ut(e[1])};function ut(e){return e==null||e===""}var hE={getDefaultColumn:function(){return{filterFn:"auto"}},getInitialState:function(){return{columnFilters:[],globalFilter:void 0,columnFiltersProgress:1,globalFilterProgress:1}},getDefaultOptions:function(t){return{onColumnFiltersChange:tt("columnFilters",t),onGlobalFilterChange:tt("globalFilter",t),autoResetColumnFilters:!0,filterFromLeafRows:!0,autoResetGlobalFilter:!0,globalFilterType:"auto",getColumnCanGlobalFilterFn:function(r){var o,i,u=(o=t.getCoreRowModel().flatRows[0])==null||(i=o.getAllCellsByColumnId()[r.id])==null?void 0:i.value;return typeof u=="string"}}},createColumn:function(t,n){var r=B(function(){return[t.getPreFilteredRows()]},function(o){var i,u,l,a;o===void 0&&(o=[]);for(var s=new Map,f=[(i=(u=o[0])==null?void 0:u.values[t.id])!=null?i:null,(l=(a=o[0])==null?void 0:a.values[t.id])!=null?l:null],c=0;c<o.length;c++){var d,h=(d=o[c])==null?void 0:d.values[t.id];if(s.has(h)){var m;s.set(h,((m=s.get(h))!=null?m:0)+1)}else s.set(h,1);h<f[0]?f[0]=h:h>f[1]&&(f[1]=h)}return{preFilteredUniqueValues:s,preFilteredMinMaxValues:f}},{key:"column.getFacetInfo",debug:function(){var i;return(i=n.options.debugAll)!=null?i:n.options.debugColumns}});return{filterFn:t.filterFn,getCanColumnFilter:function(){return n.getColumnCanColumnFilter(t.id)},getCanGlobalFilter:function(){return n.getColumnCanGlobalFilter(t.id)},getColumnFilterIndex:function(){return n.getColumnFilterIndex(t.id)},getIsColumnFiltered:function(){return n.getColumnIsFiltered(t.id)},getColumnFilterValue:function(){return n.getColumnFilterValue(t.id)},setColumnFilterValue:function(i){return n.setColumnFilterValue(t.id,i)},getPreFilteredUniqueValues:function(){return r().preFilteredUniqueValues},getPreFilteredMinMaxValues:function(){return r().preFilteredMinMaxValues},getPreFilteredRows:function(){}}},getInstance:function(t){var n=!1;return{_notifyFiltersReset:function(){if(t._notifySortingReset(),!n){n=!0;return}t.options.autoResetAll!==!1&&((t.options.autoResetAll===!0||t.options.autoResetColumnFilters)&&t.resetColumnFilters(),(t.options.autoResetAll===!0||t.options.autoResetGlobalFilter)&&t.resetGlobalFilter())},getColumnAutoFilterFn:function(o){var i=t.getCoreRowModel().flatRows[0],u=i==null?void 0:i.values[o];return typeof u=="string"?Lt.includesString:typeof u=="number"?Lt.betweenNumberRange:u!==null&&typeof u=="object"?Lt.equals:Array.isArray(u)?Lt.arrIncludes:Lt.weakEquals},getGlobalAutoFilterFn:function(){return Lt.includesString},getColumnFilterFn:function(o){var i,u=t.getColumn(o),l=t.options.filterFns;if(!u)throw new Error;return xo(u.filterFn)?u.filterFn:u.filterFn==="auto"?t.getColumnAutoFilterFn(o):(i=l==null?void 0:l[u.filterFn])!=null?i:Lt[u.filterFn]},getGlobalFilterFn:function(){var o,i=t.options,u=i.filterFns,l=i.globalFilterType;return xo(l)?l:l==="auto"?t.getGlobalAutoFilterFn():(o=u==null?void 0:u[l])!=null?o:Lt[l]},setColumnFilters:function(o){var i=t.getAllLeafColumns(),u=function(a){var s;return(s=de(o,a))==null?void 0:s.filter(function(f){var c=i.find(function(h){return h.id===f.id});if(c){var d=t.getColumnFilterFn(c.id);if(_d(d,f.value,c))return!1}return!0})};t.options.onColumnFiltersChange==null||t.options.onColumnFiltersChange(u,u(t.getState().columnFilters))},setGlobalFilter:function(o){t.options.onGlobalFilterChange==null||t.options.onGlobalFilterChange(o,de(o,t.getState().globalFilter))},resetGlobalFilter:function(){t.setGlobalFilter(t.initialState.globalFilter)},getColumnCanColumnFilter:function(o){var i,u,l,a,s,f,c=t.getColumn(o);if(!c)throw new Error;return(i=(u=(l=(a=(s=(f=c.enableAllFilters)!=null?f:c.enableColumnFilter)!=null?s:t.options.enableFilters)!=null?a:t.options.enableColumnFilters)!=null?l:c.defaultCanFilter)!=null?u:c.defaultCanColumnFilter)!=null?i:!!c.accessorFn},getColumnCanGlobalFilter:function(o){var i,u,l,a,s,f,c,d=t.getColumn(o);if(!d)throw new Error;return(i=((u=(l=(a=(s=(f=(c=t.options.enableFilters)!=null?c:t.options.enableGlobalFilter)!=null?f:d.enableAllFilters)!=null?s:d.enableGlobalFilter)!=null?a:d.defaultCanFilter)!=null?l:d.defaultCanGlobalFilter)!=null?u:!!d.accessorFn)&&(t.options.getColumnCanGlobalFilterFn==null?void 0:t.options.getColumnCanGlobalFilterFn(d)))!=null?i:!0},getColumnIsFiltered:function(o){return t.getColumnFilterIndex(o)>-1},getColumnFilterValue:function(o){var i,u;return(i=t.getState().columnFilters)==null||(u=i.find(function(l){return l.id===o}))==null?void 0:u.value},getColumnFilterIndex:function(o){var i,u;return(i=(u=t.getState().columnFilters)==null?void 0:u.findIndex(function(l){return l.id===o}))!=null?i:-1},setColumnFilterValue:function(o,i){!o||t.setColumnFilters(function(u){var l=t.getColumn(o);if(!l)throw new Error;var a=t.getColumnFilterFn(l.id),s=u==null?void 0:u.find(function(m){return m.id===o}),f=de(i,s?s.value:void 0);if(_d(a,f,l)){var c;return(c=u==null?void 0:u.filter(function(m){return m.id!==o}))!=null?c:[]}var d={id:o,value:f};if(s){var h;return(h=u==null?void 0:u.map(function(m){return m.id===o?d:m}))!=null?h:[]}return u!=null&&u.length?[].concat(u,[d]):[d]})},resetColumnFilters:function(){var o,i;t.setColumnFilters((o=(i=t.initialState)==null?void 0:i.columnFilters)!=null?o:[])},getPreFilteredRowModel:function(){return t.getCoreRowModel()},getPreColumnFilteredRowModel:function(){return t.getCoreRowModel()},getColumnFilteredRowModel:function(){return!t._getColumnFilteredRowModel&&t.options.getColumnFilteredRowModel&&(t._getColumnFilteredRowModel=t.options.getColumnFilteredRowModel(t)),t._getColumnFilteredRowModel?t._getColumnFilteredRowModel():t.getPreColumnFilteredRowModel()},getPreGlobalFilteredRowModel:function(){return t.getColumnFilteredRowModel()},getGlobalFilteredRowModel:function(){return!t._getGlobalFilteredRowModel&&t.options.getGlobalFilteredRowModel&&(t._getGlobalFilteredRowModel=t.options.getGlobalFilteredRowModel(t)),t._getGlobalFilteredRowModel?t._getGlobalFilteredRowModel():t.getPreGlobalFilteredRowModel()}}}};function _d(e,t,n){return(e&&e.autoRemove?e.autoRemove(t,n):!1)||typeof t=="undefined"||typeof t=="string"&&!t}var ai={sum:mE,min:yE,max:wE,extent:SE,mean:fh,median:CE,unique:_E,uniqueCount:RE,count:EE};function mE(e,t){return t().reduce(function(n,r){return n+(typeof r=="number"?r:0)},0)}function yE(e,t){for(var n,r=Fo(t()),o;!(o=r()).done;){var i=o.value;i!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function wE(e,t){for(var n,r=Fo(t()),o;!(o=r()).done;){var i=o.value;i!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function SE(e,t){for(var n,r,o=Fo(t()),i;!(i=o()).done;){var u=i.value;u!=null&&(n===void 0?u>=u&&(n=r=u):(n>u&&(n=u),r<u&&(r=u)))}return[n,r]}function fh(e){for(var t=0,n=0,r=Fo(e()),o;!(o=r()).done;){var i=o.value;i!=null&&(i=+i)>=i&&(++t,n+=i)}if(t)return n/t}function CE(e){var t=e();if(!!t.length){var n=0,r=0;return t.forEach(function(o){typeof o=="number"&&(n=Math.min(n,o),r=Math.max(r,o))}),(n+r)/2}}function _E(e){return Array.from(new Set(e()).values())}function RE(e){return new Set(e()).size}function EE(e){return e().length}var ch={getDefaultColumn:function(){return{aggregationFn:"auto"}},getInitialState:function(){return{grouping:[]}},getDefaultOptions:function(t){return{onGroupingChange:tt("grouping",t),autoResetGrouping:!0,groupedColumnMode:"reorder"}},createColumn:function(t,n){return{aggregationFn:t.aggregationFn,getCanGroup:function(){return n.getColumnCanGroup(t.id)},getGroupedIndex:function(){return n.getColumnGroupedIndex(t.id)},getIsGrouped:function(){return n.getColumnIsGrouped(t.id)},toggleGrouping:function(){return n.toggleColumnGrouping(t.id)},getToggleGroupingProps:function(o){return n.getToggleGroupingProps(t.id,o)}}},getInstance:function(t){var n=!1;return{_notifyGroupingReset:function(){if(t._notifyExpandedReset(),!n){n=!0;return}t.options.autoResetAll!==!1&&(t.options.autoResetAll===!0||t.options.autoResetGrouping)&&t.resetGrouping()},getColumnAutoAggregationFn:function(o){var i=t.getCoreRowModel().flatRows[0],u=i==null?void 0:i.values[o];return typeof u=="number"?ai.sum:Object.prototype.toString.call(u)==="[object Date]"?ai.extent:ai.count},getColumnAggregationFn:function(o){var i,u=t.getColumn(o),l=t.options.aggregationFns;if(!u)throw new Error;return xo(u.aggregationFn)?u.aggregationFn:u.aggregationFn==="auto"?t.getColumnAutoAggregationFn(o):(i=l==null?void 0:l[u.aggregationFn])!=null?i:ai[u.aggregationFn]},setGrouping:function(o){return t.options.onGroupingChange==null?void 0:t.options.onGroupingChange(o,de(o,t.getState().grouping))},toggleColumnGrouping:function(o){t.setGrouping(function(i){return i!=null&&i.includes(o)?i.filter(function(u){return u!==o}):[].concat(i!=null?i:[],[o])})},getColumnCanGroup:function(o){var i,u,l,a=t.getColumn(o);if(!a)throw new Error;return(i=(u=(l=a.enableGrouping)!=null?l:t.options.enableGrouping)!=null?u:a.defaultCanGroup)!=null?i:!!a.accessorFn},getColumnIsGrouped:function(o){var i;return(i=t.getState().grouping)==null?void 0:i.includes(o)},getColumnGroupedIndex:function(o){var i;return(i=t.getState().grouping)==null?void 0:i.indexOf(o)},resetGrouping:function(){var o,i;t.setGrouping((o=(i=t.initialState)==null?void 0:i.grouping)!=null?o:[])},getToggleGroupingProps:function(o,i){var u=t.getColumn(o),l=u.getCanGroup(),a={title:l?"Toggle Grouping":void 0,onClick:l?function(s){u.toggleGrouping==null||u.toggleGrouping()}:void 0};return ve(a,i)},getRowIsGrouped:function(o){var i;return!!((i=t.getRow(o))!=null&&i.groupingColumnId)},getPreGroupedRowModel:function(){return t.getSortedRowModel()},getGroupedRowModel:function(){return!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t._getGroupedRowModel?t._getGroupedRowModel():t.getPreGroupedRowModel()}}},createRow:function(t,n){return{getIsGrouped:function(){return n.getRowIsGrouped(t.id)}}},createCell:function(t,n,r,o){return{getIsGrouped:function(){return n.getIsGrouped()&&n.id===r.groupingColumnId},getIsPlaceholder:function(){return!t.getIsGrouped()&&n.getIsGrouped()},getIsAggregated:function(){var u;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&((u=r.subRows)==null?void 0:u.length)>1},renderAggregatedCell:function(){var u,l=(u=n.aggregatedCell)!=null?u:n.cell;return l?o.render(l,{instance:o,column:n,row:r,cell:t,value:t.value}):null}}},orderColumns:function(t,n,r){if(!(n!=null&&n.length)||!r)return t;var o=t.filter(function(u){return!n.includes(u.id)});if(r==="remove")return o;var i=n.map(function(u){return t.find(function(l){return l.id===u})}).filter(Boolean);return[].concat(i,o)}},PE={getInitialState:function(){return{columnOrder:[]}},getDefaultOptions:function(t){return{onColumnOrderChange:tt("columnOrder",t)}},getInstance:function(t){return{setColumnOrder:function(r){return t.options.onColumnOrderChange==null?void 0:t.options.onColumnOrderChange(r,de(r,t.getState().columnOrder))},resetColumnOrder:function(){var r;t.setColumnOrder((r=t.initialState.columnOrder)!=null?r:[])},getOrderColumnsFn:B(function(){return[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode]},function(n,r,o){return function(i){var u=[];if(!(n!=null&&n.length))u=i;else{for(var l=[].concat(n),a=[].concat(i),s=function(){var c=l.shift(),d=a.findIndex(function(h){return h.id===c});d>-1&&u.push(a.splice(d,1)[0])};a.length&&l.length;)s();u=[].concat(u,a)}return ch.orderColumns(u,r,o)}},{key:"getOrderColumnsFn"})}}},xE={getInitialState:function(){return{pagination:{pageCount:-1,pageIndex:0,pageSize:10}}},getDefaultOptions:function(t){return{onPaginationChange:tt("pagination",t),autoResetPageIndex:!0}},getInstance:function(t){var n=!1;return{_notifyPageIndexReset:function(){if(!n){n=!0;return}t.options.autoResetAll!==!1&&(t.options.autoResetAll===!0||t.options.autoResetPageIndex)&&t.resetPageIndex()},setPagination:function(o){var i=function(l){var a=de(o,l);return a};return t.options.onPaginationChange==null?void 0:t.options.onPaginationChange(i,de(i,t.getState().pagination))},resetPagination:function(){var o;t.setPagination((o=t.initialState.pagination)!=null?o:{pageIndex:0,pageSize:10,pageCount:-1})},setPageIndex:function(o){t.setPagination(function(i){var u=de(o,i.pageIndex),l=i.pageCount&&i.pageCount>0?i.pageCount-1:Number.MAX_SAFE_INTEGER;return u=Math.min(Math.max(0,u),l),Q({},i,{pageIndex:u})})},resetPageIndex:function(){t.setPageIndex(0)},resetPageSize:function(){var o,i,u;t.setPageSize((o=(i=t.initialState)==null||(u=i.pagination)==null?void 0:u.pageSize)!=null?o:10)},setPageSize:function(o){t.setPagination(function(i){var u=Math.max(1,de(o,i.pageSize)),l=i.pageSize*i.pageIndex,a=Math.floor(l/u);return Q({},i,{pageIndex:a,pageSize:u})})},setPageCount:function(o){return t.setPagination(function(i){var u=de(o,i.pageCount);return typeof u=="number"&&(u=Math.max(-1,u)),Q({},i,{pageCount:u})})},getPageOptions:B(function(){return[t.getState().pagination.pageSize,t.getState().pagination.pageCount]},function(r,o){var i=[];return o&&o>0&&(i=[].concat(new Array(o)).fill(null).map(function(u,l){return l})),i},{key:"getPageOptions",debug:function(){var o;return(o=t.options.debugAll)!=null?o:t.options.debugTable}}),getCanPreviousPage:function(){return t.getState().pagination.pageIndex>0},getCanNextPage:function(){var o=t.getState().pagination.pageIndex,i=t.getPageCount();return i===-1?!0:i===0?!1:o<i-1},previousPage:function(){return t.setPageIndex(function(o){return o-1})},nextPage:function(){return t.setPageIndex(function(o){return o+1})},getPrePaginationRowModel:function(){return t.getExpandedRowModel()},getPaginationRowModel:function(){return!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t._getPaginationRowModel?t._getPaginationRowModel():t.getPrePaginationRowModel()},getPageCount:function(){var o=t.getState().pagination.pageCount;return o>0?o:Math.ceil(t.getPrePaginationRowModel().rows.length/t.getState().pagination.pageSize)}}}},OE={getInitialState:function(){return{columnPinning:{left:[],right:[]}}},getDefaultOptions:function(t){return{onColumnPinningChange:tt("columnPinning",t)}},createColumn:function(t,n){return{getCanPin:function(){return n.getColumnCanPin(t.id)},getPinnedIndex:function(){return n.getColumnPinnedIndex(t.id)},getIsPinned:function(){return n.getColumnIsPinned(t.id)},pin:function(o){return n.pinColumn(t.id,o)}}},getInstance:function(t){return{setColumnPinning:function(r){return t.options.onColumnPinningChange==null?void 0:t.options.onColumnPinningChange(r,de(r,t.getState().columnPinning))},resetColumnPinning:function(){var r,o;return t.setColumnPinning((r=(o=t.initialState)==null?void 0:o.columnPinning)!=null?r:{})},pinColumn:function(r,o){var i=t.getColumn(r),u=i==null?void 0:i.getLeafColumns().map(function(l){return l.id}).filter(Boolean);t.setColumnPinning(function(l){var a,s;if(o==="right"){var f,c;return{left:((f=l==null?void 0:l.left)!=null?f:[]).filter(function(m){return!(u!=null&&u.includes(m))}),right:[].concat(((c=l==null?void 0:l.right)!=null?c:[]).filter(function(m){return!(u!=null&&u.includes(m))}),u)}}if(o==="left"){var d,h;return{left:[].concat(((d=l==null?void 0:l.left)!=null?d:[]).filter(function(m){return!(u!=null&&u.includes(m))}),u),right:((h=l==null?void 0:l.right)!=null?h:[]).filter(function(m){return!(u!=null&&u.includes(m))})}}return{left:((a=l==null?void 0:l.left)!=null?a:[]).filter(function(m){return!(u!=null&&u.includes(m))}),right:((s=l==null?void 0:l.right)!=null?s:[]).filter(function(m){return!(u!=null&&u.includes(m))})}})},getColumnCanPin:function(r){var o=t.getColumn(r);if(!o)throw new Error;var i=o.getLeafColumns();return i.some(function(u){var l,a,s;return(l=(a=(s=u.enablePinning)!=null?s:t.options.enablePinning)!=null?a:u.defaultCanPin)!=null?l:!!u.accessorFn})},getColumnIsPinned:function(r){var o=t.getColumn(r);if(!o)throw new Error;var i=o.getLeafColumns().map(function(c){return c.id}),u=t.getState().columnPinning,l=u.left,a=u.right,s=i.some(function(c){return l==null?void 0:l.includes(c)}),f=i.some(function(c){return a==null?void 0:a.includes(c)});return s?"left":f?"right":!1},getColumnPinnedIndex:function(r){var o,i,u,l=t.getColumnIsPinned(r);return l?(o=(i=t.getState().columnPinning)==null||(u=i[l])==null?void 0:u.indexOf(r))!=null?o:-1:0},getIsSomeColumnsPinned:function(){var r=t.getState().columnPinning,o=r.left,i=r.right;return Boolean((o==null?void 0:o.length)||(i==null?void 0:i.length))}}}},IE={getInitialState:function(){return{rowSelection:{}}},getDefaultOptions:function(t){return{onRowSelectionChange:tt("rowSelection",t),autoResetRowSelection:!0,enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}},getInstance:function(t){var n=!1;return{_notifyRowSelectionReset:function(){if(!n){n=!0;return}t.options.autoResetAll!==!1&&(t.options.autoResetAll===!0||t.options.autoResetRowSelection)&&t.resetRowSelection()},setRowSelection:function(o){return t.options.onRowSelectionChange==null?void 0:t.options.onRowSelectionChange(o,de(o,t.getState().rowSelection))},resetRowSelection:function(){var o;return t.setRowSelection((o=t.initialState.rowSelection)!=null?o:{})},toggleAllRowsSelected:function(o){t.setRowSelection(function(i){o=typeof o!="undefined"?o:!t.getIsAllRowsSelected();var u=Q({},i),l=t.getPreGroupedRowModel().flatRows;return o?l.forEach(function(a){u[a.id]=!0}):l.forEach(function(a){delete u[a.id]}),u})},toggleAllPageRowsSelected:function(o){return t.setRowSelection(function(i){typeof o!="undefined"||t.getIsAllPageRowsSelected();var u=Q({},i);return t.getRowModel().rows.forEach(function(l){Rd(u,l.id,o,t)}),u})},toggleRowSelected:function(o,i){var u=t.getRow(o),l=u.getIsSelected();t.setRowSelection(function(a){if(i=typeof i!="undefined"?i:!l,l===i)return a;var s=Q({},a);return Rd(s,o,i,t),s})},getPreSelectedRowModel:function(){return t.getCoreRowModel()},getSelectedRowModel:B(function(){return[t.getState().rowSelection,t.getCoreRowModel()]},function(r,o){return Object.keys(r).length?Sl(t,o):{rows:[],flatRows:[],rowsById:{}}},{key:"getSelectedRowModel",debug:function(){var o;return(o=t.options.debugAll)!=null?o:t.options.debugTable},onChange:function(){t.queue(function(){return t._notifyExpandedReset()})}}),getFilteredSelectedRowModel:B(function(){return[t.getState().rowSelection,t.getGlobalFilteredRowModel()]},function(r,o){return Object.keys(r).length?Sl(t,o):{rows:[],flatRows:[],rowsById:{}}},{key:"getFilteredSelectedRowModel",debug:function(){var o;return(o=t.options.debugAll)!=null?o:t.options.debugTable},onChange:function(){return t.queue(function(){return t._notifyExpandedReset()})}}),getGroupedSelectedRowModel:B(function(){return[t.getState().rowSelection,t.getGroupedRowModel()]},function(r,o){return Object.keys(r).length?Sl(t,o):{rows:[],flatRows:[],rowsById:{}}},{key:"getGroupedSelectedRowModel",debug:function(){var o;return(o=t.options.debugAll)!=null?o:t.options.debugTable},onChange:function(){return t.queue(function(){return t._notifyExpandedReset()})}}),getRowIsSelected:function(o){var i=t.getState(),u=i.rowSelection,l=t.getRow(o);if(!l)throw new Error;return nu(l,u)===!0},getRowIsSomeSelected:function(o){var i=t.getState(),u=i.rowSelection,l=t.getRow(o);if(!l)throw new Error;return nu(l,u)==="some"},getRowCanSelect:function(o){var i,u=t.getRow(o);if(!u)throw new Error;return typeof t.options.enableRowSelection=="function"?t.options.enableRowSelection(u):(i=t.options.enableRowSelection)!=null?i:!0},getRowCanSelectSubRows:function(o){var i,u=t.getRow(o);if(!u)throw new Error;return typeof t.options.enableSubRowSelection=="function"?t.options.enableSubRowSelection(u):(i=t.options.enableSubRowSelection)!=null?i:!0},getRowCanMultiSelect:function(o){var i,u=t.getRow(o);if(!u)throw new Error;return typeof t.options.enableMultiRowSelection=="function"?t.options.enableMultiRowSelection(u):(i=t.options.enableMultiRowSelection)!=null?i:!0},getIsAllRowsSelected:function(){var o=t.getPreGlobalFilteredRowModel().flatRows,i=t.getState(),u=i.rowSelection,l=Boolean(o.length&&Object.keys(u).length);return l&&o.some(function(a){return!u[a.id]})&&(l=!1),l},getIsAllPageRowsSelected:function(){var o=t.getPaginationRowModel().flatRows,i=t.getState(),u=i.rowSelection,l=!!o.length;return l&&o.some(function(a){return!u[a.id]})&&(l=!1),l},getIsSomeRowsSelected:function(){var o;return!t.getIsAllRowsSelected()&&!!Object.keys((o=t.getState().rowSelection)!=null?o:{}).length},getIsSomePageRowsSelected:function(){var o=t.getPaginationRowModel().flatRows;return t.getIsAllPageRowsSelected()?!1:!!(o!=null&&o.length)},getToggleRowSelectedProps:function(o,i){var u=t.getRow(o),l=u.getIsSelected(),a=u.getIsSomeSelected(),s=u.getCanSelect(),f={onChange:s?function(c){u.toggleSelected(c.target.checked)}:void 0,checked:l,title:"Toggle Row Selected",indeterminate:a};return ve(f,i)},getToggleAllRowsSelectedProps:function(o){var i=t.getIsSomeRowsSelected(),u=t.getIsAllRowsSelected(),l={onChange:function(s){t.toggleAllRowsSelected(s.target.checked)},checked:u,title:"Toggle All Rows Selected",indeterminate:i};return ve(l,o)},getToggleAllPageRowsSelectedProps:function(o){var i=t.getIsSomePageRowsSelected(),u=t.getIsAllPageRowsSelected(),l={onChange:function(s){t.toggleAllPageRowsSelected(s.target.checked)},checked:u,title:"Toggle All Current Page Rows Selected",indeterminate:i};return ve(l,o)}}},createRow:function(t,n){return{getIsSelected:function(){return n.getRowIsSelected(t.id)},getIsSomeSelected:function(){return n.getRowIsSomeSelected(t.id)},toggleSelected:function(o){return n.toggleRowSelected(t.id,o)},getToggleSelectedProps:function(o){return n.getToggleRowSelectedProps(t.id,o)},getCanMultiSelect:function(){return n.getRowCanMultiSelect(t.id)},getCanSelect:function(){return n.getRowCanSelect(t.id)}}}},Rd=function e(t,n,r,o){var i,u=o.getRow(n);u.getIsGrouped(),r?t[n]=!0:delete t[n],(i=u.subRows)!=null&&i.length&&o.getRowCanSelectSubRows(u.id)&&u.subRows.forEach(function(l){return e(t,l.id,r,o)})};function Sl(e,t){var n=e.getState().rowSelection,r=[],o={},i=function u(l,a){return l.map(function(s){var f,c=nu(s,n)===!0;if(c&&(r.push(s),o[s.id]=s),(f=s.subRows)!=null&&f.length&&(s=Q({},s,{subRows:u(s.subRows)})),c)return s}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function nu(e,t,n){if(t[e.id])return!0;if(e.subRows&&e.subRows.length){var r=!0,o=!1;return e.subRows.forEach(function(i){o&&!r||(nu(i,t)?o=!0:r=!1)}),r?!0:o?"some":!1}return!1}var Ha=/([0-9]+)/gm,Ar={alphanumeric:$E,alphanumericCaseSensitive:kE,text:ME,textCaseSensitive:AE,datetime:TE,basic:FE};function $E(e,t,n){return dh(on(e.values[n]).toLowerCase(),on(t.values[n]).toLowerCase())}function kE(e,t,n){return dh(on(e.values[n]),on(t.values[n]))}function dh(e,t){for(var n=e.split(Ha).filter(Boolean),r=t.split(Ha).filter(Boolean);n.length&&r.length;){var o=n.shift(),i=r.shift(),u=parseInt(o,10),l=parseInt(i,10),a=[u,l].sort();if(isNaN(a[0])){if(o>i)return 1;if(i>o)return-1;continue}if(isNaN(a[1]))return isNaN(u)?-1:1;if(u>l)return 1;if(l>u)return-1}return n.length-r.length}function ME(e,t,n){return Iu(on(e.values[n]).toLowerCase(),on(t.values[n]).toLowerCase())}function AE(e,t,n){return Iu(on(e.values[n]),on(t.values[n]))}function TE(e,t,n){return Iu(e.values[n].getTime(),t.values[n].getTime())}function FE(e,t,n){return Iu(e.values[n],t.values[n])}function Iu(e,t){return e===t?0:e>t?1:-1}function on(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}var bE={getDefaultColumn:function(){return{sortingFn:"auto"}},getInitialState:function(){return{sorting:[]}},getDefaultOptions:function(t){return{onSortingChange:tt("sorting",t),autoResetSorting:!0,isMultiSortEvent:function(r){return r.shiftKey}}},createColumn:function(t,n){return{sortingFn:t.sortingFn,getCanSort:function(){return n.getColumnCanSort(t.id)},getCanMultiSort:function(){return n.getColumnCanMultiSort(t.id)},getSortIndex:function(){return n.getColumnSortIndex(t.id)},getIsSorted:function(){return n.getColumnIsSorted(t.id)},resetSorting:function(){return n.resetSorting(t.id)},toggleSorting:function(o,i){return n.toggleColumnSorting(t.id,o,i)},getToggleSortingProps:function(o){return n.getToggleSortingProps(t.id,o)}}},getInstance:function(t){var n=!1;return{_notifySortingReset:function(){if(t._notifyGroupingReset(),!n){n=!0;return}t.options.autoResetAll!==!1&&(t.options.autoResetAll===!0||t.options.autoResetSorting)&&t.resetSorting()},getColumnAutoSortingFn:function(o){for(var i=t.getGlobalFilteredRowModel().flatRows.slice(100),u=!1,l=Fo(i),a;!(a=l()).done;){var s=a.value,f=s==null?void 0:s.values[o];if(Object.prototype.toString.call(f)==="[object Date]")return Ar.datetime;if(typeof f=="string"&&(u=!0,f.split(Ha).length>1))return Ar.alphanumeric}return u?Ar.text:Ar.basic},getColumnAutoSortDir:function(o){var i=t.getGlobalFilteredRowModel().flatRows[0],u=i==null?void 0:i.values[o];return typeof u=="string"?"asc":"desc"},getColumnSortingFn:function(o){var i,u=t.getColumn(o),l=t.options.sortingFns;if(!u)throw new Error;return xo(u.sortingFn)?u.sortingFn:u.sortingFn==="auto"?t.getColumnAutoSortingFn(o):(i=l==null?void 0:l[u.sortingFn])!=null?i:Ar[u.sortingFn]},setSorting:function(o){return t.options.onSortingChange==null?void 0:t.options.onSortingChange(o,de(o,t.getState().sorting))},toggleColumnSorting:function(o,i,u){var l=t.getColumn(o);if(!l)throw new Error;t.setSorting(function(a){var s,f,c,d,h=a==null?void 0:a.find(function(w){return w.id===o}),m=a==null?void 0:a.findIndex(function(w){return w.id===o}),v=typeof i!="undefined"&&i!==null,S=[],p;l.getCanMultiSort()&&u?h?p="toggle":p="add":a!=null&&a.length&&m!==a.length-1?p="replace":h?p="toggle":p="replace";var g=(s=(f=l.sortDescFirst)!=null?f:t.options.sortDescFirst)!=null?s:t.getColumnAutoSortDir(o)==="desc";if(p==="toggle"&&((c=t.options.enableSortingRemoval)!=null?c:!0)&&!v&&(u&&(d=t.options.enableMultiRemove)!=null?d:!0)&&(h!=null&&h.desc?!g:g)&&(p="remove"),p==="replace")S=[{id:o,desc:v?i:!!g}];else if(p==="add"&&a!=null&&a.length){var y;S=[].concat(a,[{id:o,desc:v?i:!!g}]),S.splice(0,S.length-((y=t.options.maxMultiSortColCount)!=null?y:Number.MAX_SAFE_INTEGER))}else p==="toggle"&&a!=null&&a.length?S=a.map(function(w){return w.id===o?Q({},w,{desc:v?i:!(h!=null&&h.desc)}):w}):p==="remove"&&a!=null&&a.length&&(S=a.filter(function(w){return w.id!==o}));return S})},getColumnCanSort:function(o){var i,u,l,a=t.getColumn(o);if(!a)throw new Error;return(i=(u=(l=a.enableSorting)!=null?l:t.options.enableSorting)!=null?u:a.defaultCanSort)!=null?i:!!a.accessorFn},getColumnCanMultiSort:function(o){var i,u,l=t.getColumn(o);if(!l)throw new Error;return(i=(u=l.enableMultiSort)!=null?u:t.options.enableMultiSort)!=null?i:!!l.accessorFn},getColumnIsSorted:function(o){var i,u=(i=t.getState().sorting)==null?void 0:i.find(function(l){return l.id===o});return u?u.desc?"desc":"asc":!1},getColumnSortIndex:function(o){var i,u;return(i=(u=t.getState().sorting)==null?void 0:u.findIndex(function(l){return l.id===o}))!=null?i:-1},resetSorting:function(o){if(o)t.setSorting(function(l){return l!=null&&l.length?l.filter(function(a){return a.id!==o}):[]});else{var i,u;t.setSorting((i=(u=t.initialState)==null?void 0:u.sorting)!=null?i:[])}},getToggleSortingProps:function(o,i){var u=t.getColumn(o);if(!u)throw new Error;var l=u.getCanSort(),a={title:l?"Toggle Sorting":void 0,onClick:l?function(s){s.persist==null||s.persist(),u.toggleSorting==null||u.toggleSorting(void 0,u.getCanMultiSort()?t.options.isMultiSortEvent==null?void 0:t.options.isMultiSortEvent(s):!1)}:void 0};return ve(a,i)},getPreSortedRowModel:function(){return t.getGlobalFilteredRowModel()},getSortedRowModel:function(){return!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t._getSortedRowModel?t._getSortedRowModel():t.getPreSortedRowModel()}}}},zE={getInitialState:function(){return{columnVisibility:{}}},getDefaultOptions:function(t){return{onColumnVisibilityChange:tt("columnVisibility",t)}},getDefaultColumn:function(){return{defaultIsVisible:!0}},createColumn:function(t,n){return{getCanHide:function(){return n.getColumnCanHide(t.id)},getIsVisible:function(){return n.getColumnIsVisible(t.id)},toggleVisibility:function(o){return n.toggleColumnVisibility(t.id,o)},getToggleVisibilityProps:function(o){var i={type:"checkbox",checked:t.getIsVisible==null?void 0:t.getIsVisible(),title:"Toggle Column Visibility",onChange:function(l){t.toggleVisibility==null||t.toggleVisibility(l.target.checked)}};return ve(i,o)}}},getInstance:function(t){return{getVisibleFlatColumns:B(function(){return[t.getAllFlatColumns(),t.getAllFlatColumns().filter(function(n){return n.getIsVisible==null?void 0:n.getIsVisible()}).map(function(n){return n.id}).join("_")]},function(n){return n.filter(function(r){return r.getIsVisible==null?void 0:r.getIsVisible()})},{key:"getVisibleFlatColumns",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugColumns}}),getVisibleLeafColumns:B(function(){return[t.getAllLeafColumns(),t.getAllLeafColumns().filter(function(n){return n.getIsVisible==null?void 0:n.getIsVisible()}).map(function(n){return n.id}).join("_")]},function(n){return n.filter(function(r){return r.getIsVisible==null?void 0:r.getIsVisible()})},{key:"getVisibleLeafColumns",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugColumns}}),setColumnVisibility:function(r){return t.options.onColumnVisibilityChange==null?void 0:t.options.onColumnVisibilityChange(r,de(r,t.getState().columnVisibility))},toggleColumnVisibility:function(r,o){!r||t.getColumnCanHide(r)&&t.setColumnVisibility(function(i){var u;return Q({},i,(u={},u[r]=o!=null?o:!t.getColumnIsVisible(r),u))})},toggleAllColumnsVisible:function(r){var o;r=(o=r)!=null?o:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce(function(i,u){var l;return Q({},i,(l={},l[u.id]=r||!(u.getCanHide!=null&&u.getCanHide()),l))},{}))},getColumnIsVisible:function(r){var o,i,u,l=t.getColumn(r);if(!l)throw new Error;return(o=(i=(u=t.getState().columnVisibility)==null?void 0:u[r])!=null?i:l.defaultIsVisible)!=null?o:!0},getColumnCanHide:function(r){var o,i,u,l=t.getColumn(r);if(!l)throw new Error;return(o=(i=(u=t.options.enableHiding)!=null?u:l.enableHiding)!=null?i:l.defaultCanHide)!=null?o:!0},getIsAllColumnsVisible:function(){return!t.getAllLeafColumns().some(function(r){return!(r.getIsVisible!=null&&r.getIsVisible())})},getIsSomeColumnsVisible:function(){return t.getAllLeafColumns().some(function(r){return r.getIsVisible==null?void 0:r.getIsVisible()})},getToggleAllColumnsVisibilityProps:function(r){var o={onChange:function(u){var l;t.toggleAllColumnsVisible((l=u.target)==null?void 0:l.checked)},type:"checkbox",title:"Toggle visibility for all columns",checked:t.getIsAllColumnsVisible(),indeterminate:!t.getIsAllColumnsVisible()&&t.getIsSomeColumnsVisible()?"indeterminate":void 0};return ve(o,r)}}}},LE={createRow:function(t,n){return{_getAllVisibleCells:B(function(){return[t.getAllCells().filter(function(r){return r.column.getIsVisible()}).map(function(r){return r.id}).join("_")]},function(r){return t.getAllCells().filter(function(o){return o.column.getIsVisible()})},{key:"row._getAllVisibleCells",debug:function(){var o;return(o=n.options.debugAll)!=null?o:n.options.debugRows}}),getVisibleCells:B(function(){return[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()]},function(r,o,i){return[].concat(r,o,i)},{key:"row.getVisibleCells",debug:function(){var o;return(o=n.options.debugAll)!=null?o:n.options.debugRows}}),getCenterVisibleCells:B(function(){return[t._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right]},function(r,o,i){var u=[].concat(o!=null?o:[],i!=null?i:[]);return r.filter(function(l){return!u.includes(l.columnId)})},{key:"row.getCenterVisibleCells",debug:function(){var o;return(o=n.options.debugAll)!=null?o:n.options.debugRows}}),getLeftVisibleCells:B(function(){return[t._getAllVisibleCells(),n.getState().columnPinning.left,,]},function(r,o){var i=(o!=null?o:[]).map(function(u){return r.find(function(l){return l.columnId===u})}).filter(Boolean);return i},{key:"row.getLeftVisibleCells",debug:function(){var o;return(o=n.options.debugAll)!=null?o:n.options.debugRows}}),getRightVisibleCells:B(function(){return[t._getAllVisibleCells(),n.getState().columnPinning.right]},function(r,o){var i=(o!=null?o:[]).map(function(u){return r.find(function(l){return l.columnId===u})}).filter(Boolean);return i},{key:"row.getRightVisibleCells",debug:function(){var o;return(o=n.options.debugAll)!=null?o:n.options.debugRows}})}},getInstance:function(t){return{createHeader:function(r,o){var i,u=(i=o.id)!=null?i:r.id,l={id:u,column:r,isPlaceholder:o.isPlaceholder,placeholderId:o.placeholderId,depth:o.depth,subHeaders:[],colSpan:0,rowSpan:0,getWidth:function(){var s=0,f=function c(d){if(d.subHeaders.length)d.subHeaders.forEach(c);else{var h;s+=(h=d.column.getWidth())!=null?h:0}};return f(l),s},getLeafHeaders:function(){var s=[],f=function c(d){d.subHeaders&&d.subHeaders.length&&d.subHeaders.map(c),s.push(d)};return f(l),s},getHeaderProps:function(s){return t.getHeaderProps(l.id,s)},getFooterProps:function(s){return t.getFooterProps(l.id,s)},renderHeader:function(){return r.header?t.render(r.header,{instance:t,header:l,column:r}):null},renderFooter:function(){return r.footer?t.render(r.footer,{instance:t,header:l,column:r}):null}};return Object.assign(l,eh.createHeader(l,t))},getHeaderGroups:B(function(){return[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right]},function(n,r,o,i){var u=r.filter(function(f){return o==null?void 0:o.includes(f.id)}),l=r.filter(function(f){return i==null?void 0:i.includes(f.id)}),a=r.filter(function(f){return!(o!=null&&o.includes(f.id))&&!(i!=null&&i.includes(f.id))}),s=si(n,[].concat(u,a,l),t);return s},{key:"getHeaderGroups",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getCenterHeaderGroups:B(function(){return[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right]},function(n,r,o,i){return r=r.filter(function(u){return!(o!=null&&o.includes(u.id))&&!(i!=null&&i.includes(u.id))}),si(n,r,t,"center")},{key:"getCenterHeaderGroups",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getLeftHeaderGroups:B(function(){return[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left]},function(n,r,o){return r=r.filter(function(i){return o==null?void 0:o.includes(i.id)}),si(n,r,t,"left")},{key:"getLeftHeaderGroups",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getRightHeaderGroups:B(function(){return[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right]},function(n,r,o){return r=r.filter(function(i){return o==null?void 0:o.includes(i.id)}),si(n,r,t,"right")},{key:"getRightHeaderGroups",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getFooterGroups:B(function(){return[t.getHeaderGroups()]},function(n){return[].concat(n).reverse()},{key:"getFooterGroups",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getLeftFooterGroups:B(function(){return[t.getLeftHeaderGroups()]},function(n){return[].concat(n).reverse()},{key:"getLeftFooterGroups",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getCenterFooterGroups:B(function(){return[t.getCenterHeaderGroups()]},function(n){return[].concat(n).reverse()},{key:"getCenterFooterGroups",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getRightFooterGroups:B(function(){return[t.getRightHeaderGroups()]},function(n){return[].concat(n).reverse()},{key:"getRightFooterGroups",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getFlatHeaders:B(function(){return[t.getHeaderGroups()]},function(n){return n.map(function(r){return r.headers}).flat()},{key:"getFlatHeaders",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getLeftFlatHeaders:B(function(){return[t.getLeftHeaderGroups()]},function(n){return n.map(function(r){return r.headers}).flat()},{key:"getLeftFlatHeaders",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getCenterFlatHeaders:B(function(){return[t.getCenterHeaderGroups()]},function(n){return n.map(function(r){return r.headers}).flat()},{key:"getCenterFlatHeaders",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getRightFlatHeaders:B(function(){return[t.getRightHeaderGroups()]},function(n){return n.map(function(r){return r.headers}).flat()},{key:"getRightFlatHeaders",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getCenterLeafHeaders:B(function(){return[t.getCenterFlatHeaders()]},function(n){return n.filter(function(r){var o;return!((o=r.subHeaders)!=null&&o.length)})},{key:"getCenterLeafHeaders",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getLeftLeafHeaders:B(function(){return[t.getLeftFlatHeaders()]},function(n){return n.filter(function(r){var o;return!((o=r.subHeaders)!=null&&o.length)})},{key:"getLeftLeafHeaders",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getRightLeafHeaders:B(function(){return[t.getRightFlatHeaders()]},function(n){return n.filter(function(r){var o;return!((o=r.subHeaders)!=null&&o.length)})},{key:"getRightLeafHeaders",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getLeafHeaders:B(function(){return[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()]},function(n,r,o){var i,u,l,a,s,f;return[].concat((i=(u=n[0])==null?void 0:u.headers)!=null?i:[],(l=(a=r[0])==null?void 0:a.headers)!=null?l:[],(s=(f=o[0])==null?void 0:f.headers)!=null?s:[]).map(function(c){return c.getLeafHeaders()}).flat()},{key:"getLeafHeaders",debug:function(){var r;return(r=t.options.debugAll)!=null?r:t.options.debugHeaders}}),getHeader:function(r){var o=[].concat(t.getFlatHeaders(),t.getCenterFlatHeaders(),t.getLeftFlatHeaders(),t.getRightFlatHeaders()).find(function(i){return i.id===r});if(!o)throw new Error;return o},getHeaderGroupProps:function(r,o){var i=t.getHeaderGroups().find(function(u){return u.id===r});if(!!i)return ve({key:i.id,role:"row"},o)},getFooterGroupProps:function(r,o){var i=t.getFooterGroups().find(function(l){return l.id===r});if(!!i){var u={key:i.id,role:"row"};return ve(u,o)}},getHeaderProps:function(r,o){var i=t.getHeader(r);if(!i)throw new Error;var u={key:i.id,role:"columnheader",colSpan:i.colSpan,rowSpan:i.rowSpan};return ve(u,o)},getFooterProps:function(r,o){var i=t.getHeader(r),u={key:i.id,role:"columnfooter",colSpan:i.colSpan,rowSpan:i.rowSpan};return ve(u,o)},getTotalWidth:function(){var r=0;return t.getVisibleLeafColumns().forEach(function(o){var i;r+=(i=o.getWidth())!=null?i:0}),r}}}};function si(e,t,n,r){var o,i,u=0,l=function d(h,m){m===void 0&&(m=1),u=Math.max(u,m),h.filter(function(v){return v.getIsVisible()}).forEach(function(v){var S;(S=v.columns)!=null&&S.length&&d(v.columns,m+1)},0)};l(e);var a=[],s=function d(h,m){var v={depth:m,id:[r,""+m].filter(Boolean).join("_"),headers:[],getHeaderGroupProps:function(g){return n.getHeaderGroupProps(""+m,g)},getFooterGroupProps:function(g){return n.getFooterGroupProps(""+m,g)}},S=[];h.forEach(function(p){var g=[].concat(S).reverse()[0],y=p.column.depth===v.depth,w,C=!1;y&&p.column.parent?w=p.column.parent:(w=p.column,C=!0);var R=n.createHeader(w,{id:[r,m,w.id,p==null?void 0:p.id].filter(Boolean).join("_"),isPlaceholder:C,placeholderId:C?""+S.filter(function(x){return x.column===w}).length:void 0,depth:m});!g||g.column!==R.column?(R.subHeaders.push(p),S.push(R)):g.subHeaders.push(p),v.headers.push(p)}),a.push(v),m>0&&d(S,m-1)},f=t.map(function(d){return n.createHeader(d,{depth:u})});s(f,u-1),a.reverse();var c=function d(h){var m=h.filter(function(v){return v.column.getIsVisible()});return m.map(function(v){var S=0,p=0,g=[0];v.subHeaders&&v.subHeaders.length?(g=[],d(v.subHeaders).forEach(function(w){var C=w.colSpan,R=w.rowSpan;S+=C,g.push(R)})):S=1;var y=Math.min.apply(Math,g);return p=p+y,v.colSpan=S>0?S:void 0,v.rowSpan=p>0?p:void 0,{colSpan:S,rowSpan:p}})};return c((o=(i=a[0])==null?void 0:i.headers)!=null?o:[]),a}var Dt=[LE,zE,PE,OE,hE,bE,ch,vE,xE,IE,eh];function DE(e){var t;(e.debugAll||e.debugTable)&&console.info("Creating Table Instance...");var n={},r=Dt.reduce(function(f,c){return Object.assign(f,c.getDefaultOptions==null?void 0:c.getDefaultOptions(n))},{}),o=function(c){return Q({},r,c)};n.options=o(e);var i={coreProgress:1},u=Q({},i,Dt.reduce(function(f,c){return Object.assign(f,c.getInitialState==null?void 0:c.getInitialState())},{}),(t=e.initialState)!=null?t:{}),l=[],a,s=Q({},n,Dt.reduce(function(f,c){return Object.assign(f,c.getInstance==null?void 0:c.getInstance(n))},{}),{queue:function(c){l.push(c),a||(a=setTimeout(function(){n.setState(function(d){return Q({},d)})}))},willUpdate:function(){for(clearTimeout(a);l.length;)l.shift()()},initialState:u,reset:function(){n.setState(n.initialState)},setOptions:function(c){var d=de(c,n.options);n.options.mergeOptions?n.options=n.options.mergeOptions(r,d):n.options=o(d)},render:function(c,d){return typeof n.options.render=="function"?n.options.render(c,d):typeof c=="function"?c(d):c},getRowId:function(c,d,h){var m;return(m=n.options.getRowId==null?void 0:n.options.getRowId(c,d,h))!=null?m:""+(h?[h.id,d].join("."):d)},getState:function(){return n.options.state},setState:function(c){n.options.onStateChange==null||n.options.onStateChange(c)},getDefaultColumn:B(function(){return[n.options.defaultColumn]},function(f){var c;return f=(c=f)!=null?c:{},Q({header:function(h){return h.header.column.id},footer:function(h){return h.header.column.id},cell:function(h){var m=h.value,v=m===void 0?"":m;return typeof v=="boolean"?v.toString():v}},Dt.reduce(function(d,h){return Object.assign(d,h.getDefaultColumn==null?void 0:h.getDefaultColumn())},{}),f)},{debug:function(){var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns},key:"getDefaultColumn"}),getColumnDefs:function(){return n.options.columns},createColumn:function(c,d,h){var m,v,S=n.getDefaultColumn(),p=(m=(v=c.id)!=null?v:c.accessorKey)!=null?m:typeof c.header=="string"?c.header:void 0,g;if(c.accessorFn?g=c.accessorFn:c.accessorKey&&(g=function(C){return C[c.accessorKey]}),!p)throw new Error;var y=Q({},S,c,{id:""+p,accessorFn:g,parent:h,depth:d,columnDef:c,columnDefType:c.columnDefType,columns:[],getWidth:function(){return n.getColumnWidth(y.id)},getFlatColumns:B(function(){return[!0]},function(){var w;return[y].concat((w=y.columns)==null?void 0:w.flatMap(function(C){return C.getFlatColumns()}))},{key:"column.getFlatColumns",debug:function(){var C;return(C=n.options.debugAll)!=null?C:n.options.debugColumns}}),getLeafColumns:B(function(){return[n.getOrderColumnsFn()]},function(w){var C;if((C=y.columns)!=null&&C.length){var R=y.columns.flatMap(function(x){return x.getLeafColumns()});return w(R)}return[y]},{key:"column.getLeafColumns",debug:function(){var C;return(C=n.options.debugAll)!=null?C:n.options.debugColumns}})});return y=Dt.reduce(function(w,C){return Object.assign(w,C.createColumn==null?void 0:C.createColumn(y,n))},y),y},getAllColumns:B(function(){return[n.getColumnDefs()]},function(f){var c=function d(h,m,v){return v===void 0&&(v=0),h.map(function(S){var p=n.createColumn(S,v,m);return p.columns=S.columns?d(S.columns,p,v+1):[],p})};return c(f)},{key:"getAllColumns",debug:function(){var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllFlatColumns:B(function(){return[n.getAllColumns()]},function(f){return f.flatMap(function(c){return c.getFlatColumns()})},{key:"getAllFlatColumns",debug:function(){var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllFlatColumnsById:B(function(){return[n.getAllFlatColumns()]},function(f){return f.reduce(function(c,d){return c[d.id]=d,c},{})},{key:"getAllFlatColumnsById",debug:function(){var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getAllLeafColumns:B(function(){return[n.getAllColumns(),n.getOrderColumnsFn()]},function(f,c){var d=f.flatMap(function(h){return h.getLeafColumns()});return c(d)},{key:"getAllLeafColumns",debug:function(){var c;return(c=n.options.debugAll)!=null?c:n.options.debugColumns}}),getColumn:function(c){var d=n.getAllFlatColumnsById()[c];if(!d)throw new Error;return d},createCell:function(c,d,h){var m={id:c.id+"_"+d.id,rowId:c.id,columnId:d.id,row:c,column:d,value:h,getCellProps:function(S){return n.getCellProps(c.id,d.id,S)},renderCell:function(){return d.cell?n.render(d.cell,{instance:n,column:d,row:c,cell:m,value:h}):null}};return Dt.forEach(function(v){Object.assign(m,v.createCell==null?void 0:v.createCell(m,d,c,n))},{}),m},createRow:function(c,d,h,m,v){var S={id:c,index:h,original:d,depth:m,values:v,subRows:[],getLeafRows:function(){return pE(S.subRows,function(w){return w.subRows})},getRowProps:function(w){return n.getRowProps(S.id,w)},getAllCells:void 0,getAllCellsByColumnId:void 0};S.getAllCells=B(function(){return[n.getAllLeafColumns()]},function(y){return y.map(function(w){return n.createCell(S,w,S.values[w.id])})},{key:"",debug:function(){var w;return(w=n.options.debugAll)!=null?w:n.options.debugRows}}),S.getAllCellsByColumnId=B(function(){return[S.getAllCells()]},function(y){return y.reduce(function(w,C){return w[C.columnId]=C,w},{})},{key:"row.getAllCellsByColumnId",debug:function(){var w;return(w=n.options.debugAll)!=null?w:n.options.debugRows}});for(var p=0;p<Dt.length;p++){var g=Dt[p];Object.assign(S,g.createRow==null?void 0:g.createRow(S,n))}return S},getCoreRowModel:function(){return n._getCoreRowModel||(n._getCoreRowModel=n.options.getCoreRowModel(n)),n._getCoreRowModel()},getRowModel:function(){return n.getPaginationRowModel()},getRow:function(c){var d=n.getRowModel().rowsById[c];if(!d)throw new Error;return d},getCell:function(c,d){var h=n.getRow(c);if(!h)throw new Error;var m=h.getAllCellsByColumnId()[d];if(!m)throw new Error;return m},getTableProps:function(c){return ve({role:"table"},c)},getTableBodyProps:function(c){return ve({role:"rowgroup"},c)},getRowProps:function(c,d){var h=n.getRow(c);if(!!h)return ve({key:h.id,role:"row"},d)},getCellProps:function(c,d,h){var m=n.getCell(c,d);if(!!m)return ve({key:m.id,role:"gridcell"},h)},getTableWidth:function(){var c,d;return(c=(d=n.getHeaderGroups()[0])==null?void 0:d.headers.reduce(function(h,m){return h+m.getWidth()},0))!=null?c:0},getLeftTableWidth:function(){var c,d;return(c=(d=n.getLeftHeaderGroups()[0])==null?void 0:d.headers.reduce(function(h,m){return h+m.getWidth()},0))!=null?c:0},getCenterTableWidth:function(){var c,d;return(c=(d=n.getCenterHeaderGroups()[0])==null?void 0:d.headers.reduce(function(h,m){return h+m.getWidth()},0))!=null?c:0},getRightTableWidth:function(){var c,d;return(c=(d=n.getRightHeaderGroups()[0])==null?void 0:d.headers.reduce(function(h,m){return h+m.getWidth()},0))!=null?c:0},getOverallProgress:function(){var c=n.getState(),d=c.coreProgress,h=c.columnFiltersProgress,m=c.globalFilterProgress;return fh(function(){return[d,h,m].filter(function(v){return v<1})})}});return n=Object.assign(n,s),n}function NE(e){return function(){return ph(void 0,void 0,e)}}function ph(e,t,n){var r={generics:void 0,options:n!=null?n:{render:function(){throw new Error("")}()},setRowType:function(){return r},setTableMetaType:function(){return r},setColumnMetaType:function(){return r},setOptions:function(i){return ph(e,t,Q({},n,i))},createColumns:function(i){return i},createDisplayColumn:function(i){return Q({},i,{columnDefType:"display"})},createGroup:function(i){return Q({},i,{columnDefType:"group"})},createDataColumn:function(i,u){if(u=Q({},u,{columnDefType:"data",id:u.id}),typeof i=="string"){var l;return Q({},u,{id:(l=u.id)!=null?l:i,accessorKey:i})}if(typeof i=="function")return Q({},u,{accessorFn:i});throw new Error("Invalid accessor")}};return r}function xP(){return function(e){return B(function(){return[e.options.data]},function(t){for(var n=[],r=[],o={},i=e.getAllLeafColumns(),u=function a(s,f,c,d,h){c===void 0&&(c=0);for(var m=e.getRowId(s,f,h),v={},S=0;S<i.length;S++){var p=i[S];p&&p.accessorFn&&(v[p.id]=p.accessorFn(s,f))}var g=e.createRow(m,s,f,c,v);if(d.push(g),r.push(g),o[m]=g,e.options.getSubRows){var y=e.options.getSubRows(s,f);if(y!=null&&y.length){g.originalSubRows=y;for(var w=[],C=0;C<g.originalSubRows.length;C++)a(g.originalSubRows[C],C,c+1,w,g);g.subRows=w}}},l=0;l<t.length;l++)u(t[l],l,0,n);return{rows:n,flatRows:r,rowsById:o}},{key:"getRowModel",debug:function(){var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable},onChange:function(){e.queue(function(){e._notifyFiltersReset(),e._notifyRowSelectionReset()})}})}}function HE(e,t,n){var r=[],o={},i=function u(l,a){a===void 0&&(a=0),l=l.slice();for(var s=0;s<l.length;s++){var f,c=l[s];!((f=c.subRows)!=null&&f.length)||(l[s]=n.createRow(c.id,c.original,c.index,c.depth,c.values),l[s].subRows=u(c.subRows,a+1),l[s].subRows.length||(l.splice(s,1),s--))}return l=t(l,a),l.forEach(function(d){r.push(d),o[d.id]=d}),l};return{rows:i(e),flatRows:r,rowsById:o}}function jE(e,t,n){var r=[],o={},i=function u(l,a){a===void 0&&(a=0),l=t(l,a);for(var s=0;s<l.length;s++){var f,c=l[s];if(r.push(c),o[c.id]=c,!((f=c.subRows)!=null&&f.length)){l.splice(s,1),s--;continue}l[s]=n.createRow(c.id,c.original,c.index,c.depth,c.values),l[s].subRows=u(c.subRows,a+1)}return l};return{rows:i(e),flatRows:r,rowsById:o}}function OP(){return function(e){return B(function(){return[e.getState().columnFilters,e.getPreColumnFilteredRowModel()]},function(t,n){var r=function(){if(!n.rows.length||!(t!=null&&t.length))return n;var i=e.options.filterFromLeafRows,u=function(a,s){for(var f=0;f<t.length;f++){var c=t[f],d=c.id,h=c.value,m=e.getColumn(d);if(!m)throw new Error;s===0&&function(){var S=[].concat(a);m.getPreFilteredRows=function(){return S}}();var v=e.getColumnFilterFn(m.id);!v||(a=v(a,[d],h))}return a};return i?HE(n.rows,u,e):jE(n.rows,u,e)}(),o=e.getAllLeafColumns().filter(function(i){var u;return!((u=e.getState().columnFilters)!=null&&u.find(function(l){return l.id===i.id}))});return o.forEach(function(i){i.getPreFilteredRows=function(){return r.rows}}),r},{key:"getColumnFilteredRowModelSync",debug:function(){var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable},onChange:function(){e.queue(function(){e._notifySortingReset()})}})}}function IP(){return function(e){return B(function(){return[e.getState().sorting,e.getPreSortedRowModel()]},function(t,n){if(!n.rows.length||!(t!=null&&t.length))return n;var r=e.getState().sorting,o=[],i=r.filter(function(a){return e.getColumnCanSort(a.id)}),u={};i.forEach(function(a){var s=e.getColumn(a.id);u[a.id]={sortUndefined:s.sortUndefined,invertSorting:s.invertSorting,sortingFn:e.getColumnSortingFn(a.id)}});var l=function a(s){var f=s.slice();return f.sort(function(c,d){for(var h=0;h<i.length;h+=1){var m,v=i[h],S=u[v.id],p=(m=v==null?void 0:v.desc)!=null?m:!1;if(S.sortUndefined){var g=c.values[v.id],y=d.values[v.id],w=typeof g=="undefined",C=typeof y=="undefined";if(w||C)return w&&C?0:w?S.sortUndefined:-S.sortUndefined}var R=S.sortingFn(c,d,v.id);if(R!==0)return p&&(R*=-1),S.invertSorting&&(R*=-1),R}return c.index-d.index}),f.forEach(function(c){o.push(c),!(!c.subRows||c.subRows.length<=1)&&(c.subRows=a(c.subRows))}),f};return{rows:l(n.rows),flatRows:o,rowsById:n.rowsById}},{key:"getSortedRowModel",debug:function(){var n;return(n=e.options.debugAll)!=null?n:e.options.debugTable},onChange:function(){e.queue(function(){e._notifyGroupingReset()})}})}}/**
95- * react-table
96- *
97- * Copyright (c) TanStack
98- *
99- * This source code is licensed under the MIT license found in the
100- * LICENSE.md file in the root directory of this source tree.
101- *
102- * @license MIT
103- */function Jr(){return Jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jr.apply(this,arguments)}var gh=function(t,n){return t?VE(t)?D.exports.createElement(t,n):t:null};function VE(e){return UE(e)||typeof e=="function"||GE(e)}function UE(e){return typeof e=="function"&&function(){var t=Object.getPrototypeOf(e);return t.prototype&&t.prototype.isReactComponent}()}function GE(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}var $P=NE({render:gh});function kP(e,t){var n=Jr({},e.options,{state:{},onStateChange:function(){},render:gh},t),r=D.exports.useState(function(){return DE(n)}),o=r[0],i=D.exports.useState(function(){return o.initialState}),u=i[0],l=i[1];return o.setOptions(function(a){return Jr({},a,t,{state:Jr({},u,t.state),onStateChange:function(f){l(f),t.onStateChange==null||t.onStateChange(f)}})}),D.exports.useLayoutEffect(function(){o.willUpdate()}),o}var lf={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ga,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",u="second",l="minute",a="hour",s="day",f="week",c="month",d="quarter",h="year",m="date",v="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(j,L,F){var U=String(j);return!U||U.length>=L?j:""+Array(L+1-U.length).join(F)+j},w={s:y,z:function(j){var L=-j.utcOffset(),F=Math.abs(L),U=Math.floor(F/60),N=F%60;return(L<=0?"+":"-")+y(U,2,"0")+":"+y(N,2,"0")},m:function j(L,F){if(L.date()<F.date())return-j(F,L);var U=12*(F.year()-L.year())+(F.month()-L.month()),N=L.clone().add(U,c),I=F-N<0,z=L.clone().add(U+(I?-1:1),c);return+(-(U+(F-N)/(I?N-z:z-N))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:c,y:h,w:f,d:s,D:m,h:a,m:l,s:u,ms:i,Q:d}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},C="en",R={};R[C]=g;var x=function(j){return j instanceof W},P=function j(L,F,U){var N;if(!L)return C;if(typeof L=="string"){var I=L.toLowerCase();R[I]&&(N=I),F&&(R[I]=F,N=I);var z=L.split("-");if(!N&&z.length>1)return j(z[0])}else{var _=L.name;R[_]=L,N=_}return!U&&N&&(C=N),N||!U&&C},$=function(j,L){if(x(j))return j.clone();var F=typeof L=="object"?L:{};return F.date=j,F.args=arguments,new W(F)},M=w;M.l=P,M.i=x,M.w=function(j,L){return $(j,{locale:L.$L,utc:L.$u,x:L.$x,$offset:L.$offset})};var W=function(){function j(F){this.$L=P(F.locale,null,!0),this.parse(F)}var L=j.prototype;return L.parse=function(F){this.$d=function(U){var N=U.date,I=U.utc;if(N===null)return new Date(NaN);if(M.u(N))return new Date;if(N instanceof Date)return new Date(N);if(typeof N=="string"&&!/Z$/i.test(N)){var z=N.match(S);if(z){var _=z[2]-1||0,E=(z[7]||"0").substring(0,3);return I?new Date(Date.UTC(z[1],_,z[3]||1,z[4]||0,z[5]||0,z[6]||0,E)):new Date(z[1],_,z[3]||1,z[4]||0,z[5]||0,z[6]||0,E)}}return new Date(N)}(F),this.$x=F.x||{},this.init()},L.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},L.$utils=function(){return M},L.isValid=function(){return this.$d.toString()!==v},L.isSame=function(F,U){var N=$(F);return this.startOf(U)<=N&&N<=this.endOf(U)},L.isAfter=function(F,U){return $(F)<this.startOf(U)},L.isBefore=function(F,U){return this.endOf(U)<$(F)},L.$g=function(F,U,N){return M.u(F)?this[U]:this.set(N,F)},L.unix=function(){return Math.floor(this.valueOf()/1e3)},L.valueOf=function(){return this.$d.getTime()},L.startOf=function(F,U){var N=this,I=!!M.u(U)||U,z=M.p(F),_=function(Z,q){var ae=M.w(N.$u?Date.UTC(N.$y,q,Z):new Date(N.$y,q,Z),N);return I?ae:ae.endOf(s)},E=function(Z,q){return M.w(N.toDate()[Z].apply(N.toDate("s"),(I?[0,0,0,0]:[23,59,59,999]).slice(q)),N)},O=this.$W,A=this.$M,T=this.$D,k="set"+(this.$u?"UTC":"");switch(z){case h:return I?_(1,0):_(31,11);case c:return I?_(1,A):_(0,A+1);case f:var V=this.$locale().weekStart||0,G=(O<V?O+7:O)-V;return _(I?T-G:T+(6-G),A);case s:case m:return E(k+"Hours",0);case a:return E(k+"Minutes",1);case l:return E(k+"Seconds",2);case u:return E(k+"Milliseconds",3);default:return this.clone()}},L.endOf=function(F){return this.startOf(F,!1)},L.$set=function(F,U){var N,I=M.p(F),z="set"+(this.$u?"UTC":""),_=(N={},N[s]=z+"Date",N[m]=z+"Date",N[c]=z+"Month",N[h]=z+"FullYear",N[a]=z+"Hours",N[l]=z+"Minutes",N[u]=z+"Seconds",N[i]=z+"Milliseconds",N)[I],E=I===s?this.$D+(U-this.$W):U;if(I===c||I===h){var O=this.clone().set(m,1);O.$d[_](E),O.init(),this.$d=O.set(m,Math.min(this.$D,O.daysInMonth())).$d}else _&&this.$d[_](E);return this.init(),this},L.set=function(F,U){return this.clone().$set(F,U)},L.get=function(F){return this[M.p(F)]()},L.add=function(F,U){var N,I=this;F=Number(F);var z=M.p(U),_=function(A){var T=$(I);return M.w(T.date(T.date()+Math.round(A*F)),I)};if(z===c)return this.set(c,this.$M+F);if(z===h)return this.set(h,this.$y+F);if(z===s)return _(1);if(z===f)return _(7);var E=(N={},N[l]=r,N[a]=o,N[u]=n,N)[z]||1,O=this.$d.getTime()+F*E;return M.w(O,this)},L.subtract=function(F,U){return this.add(-1*F,U)},L.format=function(F){var U=this,N=this.$locale();if(!this.isValid())return N.invalidDate||v;var I=F||"YYYY-MM-DDTHH:mm:ssZ",z=M.z(this),_=this.$H,E=this.$m,O=this.$M,A=N.weekdays,T=N.months,k=function(q,ae,Be,at){return q&&(q[ae]||q(U,I))||Be[ae].slice(0,at)},V=function(q){return M.s(_%12||12,q,"0")},G=N.meridiem||function(q,ae,Be){var at=q<12?"AM":"PM";return Be?at.toLowerCase():at},Z={YY:String(this.$y).slice(-2),YYYY:this.$y,M:O+1,MM:M.s(O+1,2,"0"),MMM:k(N.monthsShort,O,T,3),MMMM:k(T,O),D:this.$D,DD:M.s(this.$D,2,"0"),d:String(this.$W),dd:k(N.weekdaysMin,this.$W,A,2),ddd:k(N.weekdaysShort,this.$W,A,3),dddd:A[this.$W],H:String(_),HH:M.s(_,2,"0"),h:V(1),hh:V(2),a:G(_,E,!0),A:G(_,E,!1),m:String(E),mm:M.s(E,2,"0"),s:String(this.$s),ss:M.s(this.$s,2,"0"),SSS:M.s(this.$ms,3,"0"),Z:z};return I.replace(p,function(q,ae){return ae||Z[q]||z.replace(":","")})},L.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},L.diff=function(F,U,N){var I,z=M.p(U),_=$(F),E=(_.utcOffset()-this.utcOffset())*r,O=this-_,A=M.m(this,_);return A=(I={},I[h]=A/12,I[c]=A,I[d]=A/3,I[f]=(O-E)/6048e5,I[s]=(O-E)/864e5,I[a]=O/o,I[l]=O/r,I[u]=O/n,I)[z]||O,N?A:M.a(A)},L.daysInMonth=function(){return this.endOf(c).$D},L.$locale=function(){return R[this.$L]},L.locale=function(F,U){if(!F)return this.$L;var N=this.clone(),I=P(F,U,!0);return I&&(N.$L=I),N},L.clone=function(){return M.w(this.$d,this)},L.toDate=function(){return new Date(this.valueOf())},L.toJSON=function(){return this.isValid()?this.toISOString():null},L.toISOString=function(){return this.$d.toISOString()},L.toString=function(){return this.$d.toUTCString()},j}(),J=W.prototype;return $.prototype=J,[["$ms",i],["$s",u],["$m",l],["$H",a],["$W",s],["$M",c],["$y",h],["$D",m]].forEach(function(j){J[j[1]]=function(L){return this.$g(L,j[0],j[1])}}),$.extend=function(j,L){return j.$i||(j(L,W,$),j.$i=!0),$},$.locale=P,$.isDayjs=x,$.unix=function(j){return $(1e3*j)},$.en=R[C],$.Ls=R,$.p={},$})})(lf);var MP=lf.exports,vh={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Ga,function(){return function(n,r,o){n=n||{};var i=r.prototype,u={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(s,f,c,d){return i.fromToBase(s,f,c,d)}o.en.relativeTime=u,i.fromToBase=function(s,f,c,d,h){for(var m,v,S,p=c.$locale().relativeTime||u,g=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],y=g.length,w=0;w<y;w+=1){var C=g[w];C.d&&(m=d?o(s).diff(c,C.d,!0):c.diff(s,C.d,!0));var R=(n.rounding||Math.round)(Math.abs(m));if(S=m>0,R<=C.r||!C.r){R<=1&&w>0&&(C=g[w-1]);var x=p[C.l];h&&(R=h(""+R)),v=typeof x=="string"?x.replace("%d",R):x(R,f,C.l,S);break}}if(f)return v;var P=S?p.future:p.past;return typeof P=="function"?P(v):P.replace("%s",v)},i.to=function(s,f){return l(s,f,this,!0)},i.from=function(s,f){return l(s,f,this)};var a=function(s){return s.$u?o.utc():o()};i.toNow=function(s){return this.to(a(this),s)},i.fromNow=function(s){return this.from(a(this),s)}}})})(vh);var AP=vh.exports,WE={exports:{}};(function(e,t){(function(n,r){e.exports=r(lf.exports)})(Ga,function(n){function r(u){return u&&typeof u=="object"&&"default"in u?u:{default:u}}var o=r(n),i={name:"zh-cn",weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),ordinal:function(u,l){return l==="W"?u+"\u5468":u+"\u65E5"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},relativeTime:{future:"%s\u5185",past:"%s\u524D",s:"\u51E0\u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},meridiem:function(u,l){var a=100*u+l;return a<600?"\u51CC\u6668":a<900?"\u65E9\u4E0A":a<1100?"\u4E0A\u5348":a<1300?"\u4E2D\u5348":a<1800?"\u4E0B\u5348":"\u665A\u4E0A"}};return o.default.locale(i,null,!0),i})})(WE);var BE=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},qE=function(){function e(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),KE=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YE=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Ed=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},QE=function(){function e(t,n){var r=[],o=!0,i=!1,u=void 0;try{for(var l=t[Symbol.iterator](),a;!(o=(a=l.next()).done)&&(r.push(a.value),!(n&&r.length===n));o=!0);}catch(s){i=!0,u=s}finally{try{!o&&l.return&&l.return()}finally{if(i)throw u}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),Ze=void 0;typeof window!="undefined"?Ze=window:typeof self!="undefined"?Ze=self:Ze=global;var ja=null,Va=null,Pd=20,Cl=Ze.clearTimeout,xd=Ze.setTimeout,_l=Ze.cancelAnimationFrame||Ze.mozCancelAnimationFrame||Ze.webkitCancelAnimationFrame,Od=Ze.requestAnimationFrame||Ze.mozRequestAnimationFrame||Ze.webkitRequestAnimationFrame;_l==null||Od==null?(ja=Cl,Va=function(t){return xd(t,Pd)}):(ja=function(t){var n=QE(t,2),r=n[0],o=n[1];_l(r),Cl(o)},Va=function(t){var n=Od(function(){Cl(r),t()}),r=xd(function(){_l(n),t()},Pd);return[n,r]});function JE(e){var t=void 0,n=void 0,r=void 0,o=void 0,i=void 0,u=void 0,l=void 0,a=typeof document!="undefined"&&document.attachEvent;if(!a){u=function(w){var C=w.__resizeTriggers__,R=C.firstElementChild,x=C.lastElementChild,P=R.firstElementChild;x.scrollLeft=x.scrollWidth,x.scrollTop=x.scrollHeight,P.style.width=R.offsetWidth+1+"px",P.style.height=R.offsetHeight+1+"px",R.scrollLeft=R.scrollWidth,R.scrollTop=R.scrollHeight},i=function(w){return w.offsetWidth!==w.__resizeLast__.width||w.offsetHeight!==w.__resizeLast__.height},l=function(w){if(!(w.target.className&&typeof w.target.className.indexOf=="function"&&w.target.className.indexOf("contract-trigger")<0&&w.target.className.indexOf("expand-trigger")<0)){var C=this;u(this),this.__resizeRAF__&&ja(this.__resizeRAF__),this.__resizeRAF__=Va(function(){i(C)&&(C.__resizeLast__.width=C.offsetWidth,C.__resizeLast__.height=C.offsetHeight,C.__resizeListeners__.forEach(function(P){P.call(C,w)}))})}};var s=!1,f="";r="animationstart";var c="Webkit Moz O ms".split(" "),d="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),h="";{var m=document.createElement("fakeelement");if(m.style.animationName!==void 0&&(s=!0),s===!1){for(var v=0;v<c.length;v++)if(m.style[c[v]+"AnimationName"]!==void 0){h=c[v],f="-"+h.toLowerCase()+"-",r=d[v],s=!0;break}}}n="resizeanim",t="@"+f+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=f+"animation: 1ms "+n+"; "}var S=function(w){if(!w.getElementById("detectElementResize")){var C=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',R=w.head||w.getElementsByTagName("head")[0],x=w.createElement("style");x.id="detectElementResize",x.type="text/css",e!=null&&x.setAttribute("nonce",e),x.styleSheet?x.styleSheet.cssText=C:x.appendChild(w.createTextNode(C)),R.appendChild(x)}},p=function(w,C){if(a)w.attachEvent("onresize",C);else{if(!w.__resizeTriggers__){var R=w.ownerDocument,x=Ze.getComputedStyle(w);x&&x.position==="static"&&(w.style.position="relative"),S(R),w.__resizeLast__={},w.__resizeListeners__=[],(w.__resizeTriggers__=R.createElement("div")).className="resize-triggers";var P=R.createElement("div");P.className="expand-trigger",P.appendChild(R.createElement("div"));var $=R.createElement("div");$.className="contract-trigger",w.__resizeTriggers__.appendChild(P),w.__resizeTriggers__.appendChild($),w.appendChild(w.__resizeTriggers__),u(w),w.addEventListener("scroll",l,!0),r&&(w.__resizeTriggers__.__animationListener__=function(W){W.animationName===n&&u(w)},w.__resizeTriggers__.addEventListener(r,w.__resizeTriggers__.__animationListener__))}w.__resizeListeners__.push(C)}},g=function(w,C){if(a)w.detachEvent("onresize",C);else if(w.__resizeListeners__.splice(w.__resizeListeners__.indexOf(C),1),!w.__resizeListeners__.length){w.removeEventListener("scroll",l,!0),w.__resizeTriggers__.__animationListener__&&(w.__resizeTriggers__.removeEventListener(r,w.__resizeTriggers__.__animationListener__),w.__resizeTriggers__.__animationListener__=null);try{w.__resizeTriggers__=!w.removeChild(w.__resizeTriggers__)}catch{}}};return{addResizeListener:p,removeResizeListener:g}}var XE=function(e){YE(t,e);function t(){var n,r,o,i;BE(this,t);for(var u=arguments.length,l=Array(u),a=0;a<u;a++)l[a]=arguments[a];return i=(r=(o=Ed(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),o),o.state={height:o.props.defaultHeight||0,width:o.props.defaultWidth||0},o._onResize=function(){var s=o.props,f=s.disableHeight,c=s.disableWidth,d=s.onResize;if(o._parentNode){var h=o._parentNode.offsetHeight||0,m=o._parentNode.offsetWidth||0,v=window.getComputedStyle(o._parentNode)||{},S=parseInt(v.paddingLeft,10)||0,p=parseInt(v.paddingRight,10)||0,g=parseInt(v.paddingTop,10)||0,y=parseInt(v.paddingBottom,10)||0,w=h-g-y,C=m-S-p;(!f&&o.state.height!==w||!c&&o.state.width!==C)&&(o.setState({height:h-g-y,width:m-S-p}),d({height:h,width:m}))}},o._setRef=function(s){o._autoSizer=s},r),Ed(o,i)}return qE(t,[{key:"componentDidMount",value:function(){var r=this.props.nonce;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._detectElementResize=JE(r),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var r=this.props,o=r.children,i=r.className,u=r.disableHeight,l=r.disableWidth,a=r.style,s=this.state,f=s.height,c=s.width,d={overflow:"visible"},h={},m=!1;return u||(f===0&&(m=!0),d.height=0,h.height=f),l||(c===0&&(m=!0),d.width=0,h.width=c),D.exports.createElement("div",{className:i,ref:this._setRef,style:KE({},d,a)},!m&&o(h))}}]),t}(D.exports.PureComponent);XE.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};function Id(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e,t){return Ua=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},Ua(e,t)}function ZE(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ua(e,t)}var $d=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function eP(e,t){return!!(e===t||$d(e)&&$d(t))}function tP(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!eP(e[n],t[n]))return!1;return!0}function Rl(e,t){t===void 0&&(t=tP);var n,r=[],o,i=!1;function u(){for(var l=[],a=0;a<arguments.length;a++)l[a]=arguments[a];return i&&n===this&&t(l,r)||(o=e.apply(this,l),i=!0,n=this,r=l),o}return u}var nP=typeof performance=="object"&&typeof performance.now=="function",kd=nP?function(){return performance.now()}:function(){return Date.now()};function Md(e){cancelAnimationFrame(e.id)}function rP(e,t){var n=kd();function r(){kd()-n>=t?e.call(null):o.id=requestAnimationFrame(r)}var o={id:requestAnimationFrame(r)};return o}var Ln=null;function Ad(e){if(e===void 0&&(e=!1),Ln===null||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?Ln="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?Ln="negative":Ln="positive-ascending"),document.body.removeChild(t),Ln}return Ln}var oP=150,iP=function(t,n){return t};function uP(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,u=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,a=e.initInstanceProps,s=e.shouldResetStyleCacheOnItemSizeChange,f=e.validateProps;return t=function(c){ZE(d,c);function d(m){var v;return v=c.call(this,m)||this,v._instanceProps=a(v.props,Id(v)),v._outerRef=void 0,v._resetIsScrollingTimeoutId=null,v.state={instance:Id(v),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof v.props.initialScrollOffset=="number"?v.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},v._callOnItemsRendered=void 0,v._callOnItemsRendered=Rl(function(S,p,g,y){return v.props.onItemsRendered({overscanStartIndex:S,overscanStopIndex:p,visibleStartIndex:g,visibleStopIndex:y})}),v._callOnScroll=void 0,v._callOnScroll=Rl(function(S,p,g){return v.props.onScroll({scrollDirection:S,scrollOffset:p,scrollUpdateWasRequested:g})}),v._getItemStyle=void 0,v._getItemStyle=function(S){var p=v.props,g=p.direction,y=p.itemSize,w=p.layout,C=v._getItemStyleCache(s&&y,s&&w,s&&g),R;if(C.hasOwnProperty(S))R=C[S];else{var x=n(v.props,S,v._instanceProps),P=o(v.props,S,v._instanceProps),$=g==="horizontal"||w==="horizontal",M=g==="rtl",W=$?x:0;C[S]=R={position:"absolute",left:M?void 0:W,right:M?W:void 0,top:$?0:x,height:$?"100%":P,width:$?P:"100%"}}return R},v._getItemStyleCache=void 0,v._getItemStyleCache=Rl(function(S,p,g){return{}}),v._onScrollHorizontal=function(S){var p=S.currentTarget,g=p.clientWidth,y=p.scrollLeft,w=p.scrollWidth;v.setState(function(C){if(C.scrollOffset===y)return null;var R=v.props.direction,x=y;if(R==="rtl")switch(Ad()){case"negative":x=-y;break;case"positive-descending":x=w-g-y;break}return x=Math.max(0,Math.min(x,w-g)),{isScrolling:!0,scrollDirection:C.scrollOffset<y?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._onScrollVertical=function(S){var p=S.currentTarget,g=p.clientHeight,y=p.scrollHeight,w=p.scrollTop;v.setState(function(C){if(C.scrollOffset===w)return null;var R=Math.max(0,Math.min(w,y-g));return{isScrolling:!0,scrollDirection:C.scrollOffset<R?"forward":"backward",scrollOffset:R,scrollUpdateWasRequested:!1}},v._resetIsScrollingDebounced)},v._outerRefSetter=function(S){var p=v.props.outerRef;v._outerRef=S,typeof p=="function"?p(S):p!=null&&typeof p=="object"&&p.hasOwnProperty("current")&&(p.current=S)},v._resetIsScrollingDebounced=function(){v._resetIsScrollingTimeoutId!==null&&Md(v._resetIsScrollingTimeoutId),v._resetIsScrollingTimeoutId=rP(v._resetIsScrolling,oP)},v._resetIsScrolling=function(){v._resetIsScrollingTimeoutId=null,v.setState({isScrolling:!1},function(){v._getItemStyleCache(-1,null)})},v}d.getDerivedStateFromProps=function(v,S){return lP(v,S),f(v),null};var h=d.prototype;return h.scrollTo=function(v){v=Math.max(0,v),this.setState(function(S){return S.scrollOffset===v?null:{scrollDirection:S.scrollOffset<v?"forward":"backward",scrollOffset:v,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},h.scrollToItem=function(v,S){S===void 0&&(S="auto");var p=this.props.itemCount,g=this.state.scrollOffset;v=Math.max(0,Math.min(v,p-1)),this.scrollTo(i(this.props,v,S,g,this._instanceProps))},h.componentDidMount=function(){var v=this.props,S=v.direction,p=v.initialScrollOffset,g=v.layout;if(typeof p=="number"&&this._outerRef!=null){var y=this._outerRef;S==="horizontal"||g==="horizontal"?y.scrollLeft=p:y.scrollTop=p}this._callPropsCallbacks()},h.componentDidUpdate=function(){var v=this.props,S=v.direction,p=v.layout,g=this.state,y=g.scrollOffset,w=g.scrollUpdateWasRequested;if(w&&this._outerRef!=null){var C=this._outerRef;if(S==="horizontal"||p==="horizontal")if(S==="rtl")switch(Ad()){case"negative":C.scrollLeft=-y;break;case"positive-ascending":C.scrollLeft=y;break;default:var R=C.clientWidth,x=C.scrollWidth;C.scrollLeft=x-R-y;break}else C.scrollLeft=y;else C.scrollTop=y}this._callPropsCallbacks()},h.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&Md(this._resetIsScrollingTimeoutId)},h.render=function(){var v=this.props,S=v.children,p=v.className,g=v.direction,y=v.height,w=v.innerRef,C=v.innerElementType,R=v.innerTagName,x=v.itemCount,P=v.itemData,$=v.itemKey,M=$===void 0?iP:$,W=v.layout,J=v.outerElementType,j=v.outerTagName,L=v.style,F=v.useIsScrolling,U=v.width,N=this.state.isScrolling,I=g==="horizontal"||W==="horizontal",z=I?this._onScrollHorizontal:this._onScrollVertical,_=this._getRangeToRender(),E=_[0],O=_[1],A=[];if(x>0)for(var T=E;T<=O;T++)A.push(D.exports.createElement(S,{data:P,key:M(T,P),index:T,isScrolling:F?N:void 0,style:this._getItemStyle(T)}));var k=r(this.props,this._instanceProps);return D.exports.createElement(J||j||"div",{className:p,onScroll:z,ref:this._outerRefSetter,style:mo({position:"relative",height:y,width:U,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:g},L)},D.exports.createElement(C||R||"div",{children:A,ref:w,style:{height:I?"100%":k,pointerEvents:N?"none":void 0,width:I?k:"100%"}}))},h._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var v=this.props.itemCount;if(v>0){var S=this._getRangeToRender(),p=S[0],g=S[1],y=S[2],w=S[3];this._callOnItemsRendered(p,g,y,w)}}if(typeof this.props.onScroll=="function"){var C=this.state,R=C.scrollDirection,x=C.scrollOffset,P=C.scrollUpdateWasRequested;this._callOnScroll(R,x,P)}},h._getRangeToRender=function(){var v=this.props,S=v.itemCount,p=v.overscanCount,g=this.state,y=g.isScrolling,w=g.scrollDirection,C=g.scrollOffset;if(S===0)return[0,0,0,0];var R=u(this.props,C,this._instanceProps),x=l(this.props,R,C,this._instanceProps),P=!y||w==="backward"?Math.max(1,p):1,$=!y||w==="forward"?Math.max(1,p):1;return[Math.max(0,R-P),Math.max(0,Math.min(S-1,x+$)),R,x]},d}(D.exports.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var lP=function(t,n){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,n.instance},TP=uP({getItemOffset:function(t,n){var r=t.itemSize;return n*r},getItemSize:function(t,n){var r=t.itemSize;return r},getEstimatedTotalSize:function(t){var n=t.itemCount,r=t.itemSize;return r*n},getOffsetForIndexAndAlignment:function(t,n,r,o){var i=t.direction,u=t.height,l=t.itemCount,a=t.itemSize,s=t.layout,f=t.width,c=i==="horizontal"||s==="horizontal",d=c?f:u,h=Math.max(0,l*a-d),m=Math.min(h,n*a),v=Math.max(0,n*a-d+a);switch(r==="smart"&&(o>=v-d&&o<=m+d?r="auto":r="center"),r){case"start":return m;case"end":return v;case"center":{var S=Math.round(v+(m-v)/2);return S<Math.ceil(d/2)?0:S>h+Math.floor(d/2)?h:S}case"auto":default:return o>=v&&o<=m?o:o<v?v:m}},getStartIndexForOffset:function(t,n){var r=t.itemCount,o=t.itemSize;return Math.max(0,Math.min(r-1,Math.floor(n/o)))},getStopIndexForStartIndex:function(t,n,r){var o=t.direction,i=t.height,u=t.itemCount,l=t.itemSize,a=t.layout,s=t.width,f=o==="horizontal"||a==="horizontal",c=n*l,d=f?s:i,h=Math.ceil((d+r-c)/l);return Math.max(0,Math.min(u-1,n+h-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});export{OP as A,XE as B,gP as C,fP as D,CP as E,TP as F,l0 as G,sP as H,Ty as I,cP as J,dP as N,aP as R,yv as a,Rv as b,pP as c,_P as d,Ma as e,vP as f,wP as g,Ao as h,mP as i,yP as j,__ as k,SP as l,VS as m,Hd as n,RP as o,MP as p,AP as q,D as r,$P as s,hP as t,C_ as u,PP as v,kP as w,EP as x,xP as y,IP as z};
--- /dev/null
+++ b/applications/luci-app-openclash/root/usr/share/openclash/dashboard/assets/vendor.91f359a7.js
@@ -0,0 +1,103 @@
1+var es=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},F={exports:{}},K={};/**
2+ * @license React
3+ * react.production.min.js
4+ *
5+ * Copyright (c) Facebook, Inc. and its affiliates.
6+ *
7+ * This source code is licensed under the MIT license found in the
8+ * LICENSE file in the root directory of this source tree.
9+ */var Do=Symbol.for("react.element"),em=Symbol.for("react.portal"),tm=Symbol.for("react.fragment"),nm=Symbol.for("react.strict_mode"),rm=Symbol.for("react.profiler"),om=Symbol.for("react.provider"),im=Symbol.for("react.context"),um=Symbol.for("react.forward_ref"),lm=Symbol.for("react.suspense"),am=Symbol.for("react.memo"),sm=Symbol.for("react.lazy"),_f=Symbol.iterator;function fm(e){return e===null||typeof e!="object"?null:(e=_f&&e[_f]||e["@@iterator"],typeof e=="function"?e:null)}var Xd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zd=Object.assign,ep={};function Er(e,t,n){this.props=e,this.context=t,this.refs=ep,this.updater=n||Xd}Er.prototype.isReactComponent={};Er.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Er.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function tp(){}tp.prototype=Er.prototype;function ts(e,t,n){this.props=e,this.context=t,this.refs=ep,this.updater=n||Xd}var ns=ts.prototype=new tp;ns.constructor=ts;Zd(ns,Er.prototype);ns.isPureReactComponent=!0;var Rf=Array.isArray,np=Object.prototype.hasOwnProperty,rs={current:null},rp={key:!0,ref:!0,__self:!0,__source:!0};function op(e,t,n){var r,o={},i=null,u=null;if(t!=null)for(r in t.ref!==void 0&&(u=t.ref),t.key!==void 0&&(i=""+t.key),t)np.call(t,r)&&!rp.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1<l){for(var a=Array(l),s=0;s<l;s++)a[s]=arguments[s+2];o.children=a}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)o[r]===void 0&&(o[r]=l[r]);return{$$typeof:Do,type:e,key:i,ref:u,props:o,_owner:rs.current}}function cm(e,t){return{$$typeof:Do,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function os(e){return typeof e=="object"&&e!==null&&e.$$typeof===Do}function dm(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Ef=/\/+/g;function Hu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?dm(""+e.key):t.toString(36)}function Si(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case Do:case em:u=!0}}if(u)return u=e,o=o(u),e=r===""?"."+Hu(u,0):r,Rf(o)?(n="",e!=null&&(n=e.replace(Ef,"$&/")+"/"),Si(o,t,n,"",function(s){return s})):o!=null&&(os(o)&&(o=cm(o,n+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(Ef,"$&/")+"/")+e)),t.push(o)),1;if(u=0,r=r===""?".":r+":",Rf(e))for(var l=0;l<e.length;l++){i=e[l];var a=r+Hu(i,l);u+=Si(i,t,n,a,o)}else if(a=fm(e),typeof a=="function")for(e=a.call(e),l=0;!(i=e.next()).done;)i=i.value,a=r+Hu(i,l++),u+=Si(i,t,n,a,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function Wo(e,t,n){if(e==null)return e;var r=[],o=0;return Si(e,r,"","",function(i){return t.call(n,i,o++)}),r}function pm(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ke={current:null},wi={transition:null},gm={ReactCurrentDispatcher:ke,ReactCurrentBatchConfig:wi,ReactCurrentOwner:rs};K.Children={map:Wo,forEach:function(e,t,n){Wo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Wo(e,function(){t++}),t},toArray:function(e){return Wo(e,function(t){return t})||[]},only:function(e){if(!os(e))throw Error("React.Child

Part of diff was cut off due to size limit. Use your local client to view the full diff.

Afficher sur ancien navigateur de dépôt.